On 4/15/2011 5:26 AM, Zheng Huan wrote:
++++++ 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_MODULE=$bn
++                      fi
++              fi
+               /usr/sbin/ohmd
+       fi
+

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

may I say that I really do not like adding junk like this to rc.sysinit.
AT ALL.

if you need this much startup weirdness, either stick it in a real service,
or make your startup logic a shell script...
or... better yet... have an /etc/ohm.d/<boardname> kind of structure and make
OHM actually smart.



Praj: Can you revert this stuff and make sure we get a real proper solution instead?

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

Reply via email to