Hi,

if the OHM_CONF_PLATFORM is not valid what will happen? All platform do not have platform specific modules, right?

Regards,
Marko

On 05/04/2011 10:40 AM, Zheng Huan wrote:
Hi,
I have made the following changes to fastinit in project MeeGo:1.2:oss:Testing. 
Please review and accept ASAP.

Thank You,
Zheng Huan

[This message was auto-generated]

---

Request #17478:

   submit:   home:zbt:branches:MeeGo:1.2:oss:Testing/fastinit(r6)(cleanup) ->  
MeeGo:1.2:oss:Testing/fastinit


Message:
     Fix BMC7487 which has been proposed to release blocker; this submit will 
be only sent to MeeGo:1.2:oss:Testing since fastinit may go away in 1.3; no 
platform dependent

State:   new          2011-05-04T00:40:46 zbt
Comment: None



changes files:
--------------
--- fastinit.changes
+++ fastinit.changes
@@ -0,0 +1,3 @@
+* Wed May 4 2011 Zheng Huan<[email protected]>  - 1.28
+- Added OHM_CONF_PLATFORM to load different ohmd modules on different 
platform, for BMC#7487
+

new:
----
   ohmd-boardname.patch

spec files:
-----------
--- fastinit.spec
+++ fastinit.spec
@@ -8,6 +8,7 @@
  Patch0: add-daemon.patch
  Patch1: sensorfw-boardname.patch
  Patch2: disable-als.patch
+Patch3: ohmd-boardname.patch
  BuildRoot: /%{_tmppath}/%{name}-%{version}-%{release}-root
  Requires: mingetty, /bin/awk, /bin/sed, /bin/mktemp, e2fsprogs>= 1.15
  Requires: /sbin/sysctl, syslog
@@ -38,6 +39,7 @@
  %patch0 -p1
  %patch1 -p1
  %patch2 -p1
+%patch3 -p1

  %build
  make -C src

other changes:
--------------

++++++ ohmd-boardname.patch (new)
--- ohmd-boardname.patch
+++ ohmd-boardname.patch
+diff -urN fastinit-1.28/rc.d/rc.sysinit fastinit-1.28-p/rc.d/rc.sysinit
+--- fastinit-1.28/rc.d/rc.sysinit      2011-05-04 06:52:00.164382905 +0800
++++ fastinit-1.28-p/rc.d/rc.sysinit    2011-05-04 07:07:17.532383245 +0800
+@@ -347,6 +347,10 @@
+       fi
+       
+       if [ -x "/usr/sbin/ohmd" ] ; then
++              if [ -f "/etc/boardname" ]; then
++                      bn=`cat /etc/boardname`
++                      export OHM_CONF_PLATFORM=$bn
++              fi
+               /usr/sbin/ohmd
+       fi
+

_______________________________________________
MeeGo-commits mailing list
[email protected]
http://lists.meego.com/listinfo/meego-commits

_______________________________________________
MeeGo-packaging mailing list
[email protected]
http://lists.meego.com/listinfo/meego-packaging

Reply via email to