Hi,

this code should not be hardware dependent. Could this be something like:

if [ -f /etc/boardname ]; then
  bn=`cat /etc/boardname`
  if [ -f OHM_CONF_LOCATION/$bn.conf ]; then
    export OHM_CONF_PLATFORM=$bn
  fi
fi

Then it would be usable for all of the platform not only for the one?

NOTE: Code above was not tested.

Regards,
Marko


On 05/04/2011 06:29 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 #17468:

   submit:   home:zbt:branches:MeeGo:1.2:oss:Testing/fastinit(r3)(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

State:   new          2011-05-03T20:29:11 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 -p1Zheng Huan <[email protected]>

  %build
  make -C src

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

++++++ ohmd-boardname.patch (new)
--- ohmd-boardname.patch
+++ ohmd-boardname.patch
+diff -urN fastinit-1.28-m/rc.d/rc.sysinit fastinit-1.28-ohmd/rc.d/rc.sysinit
+--- fastinit-1.28-m/rc.d/rc.sysinit    2011-04-15 14:42:14.149379903 +0800
++++ fastinit-1.28-ohmd/rc.d/rc.sysinit 2011-04-15 15:16:28.928380151 +0800
+@@ -347,6 +347,12 @@
+       fi
+       
+       if [ -x "/usr/sbin/ohmd" ] ; then
++              if [ -f /etc/boardname ]; then
++                      bn=`cat /etc/boardname`
++                      if [ $bn == "ia32_oemtablet" ]; then
++                              export OHM_CONF_PLATFORM=$bn
++                      fi
++              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