initscripts-shr: add modified version of halt/reboot scripts for palmpre machine
authorSimon Busch <morphis@gravedo.de>
Sat, 15 Jan 2011 11:56:59 +0000 (12:56 +0100)
committerSimon Busch <morphis@amethyst.openembedded.net>
Sat, 15 Jan 2011 12:02:24 +0000 (13:02 +0100)
Signed-off-by: Simon Busch <morphis@gravedo.de>
recipes/shr/initscripts-shr/palmpre/halt [new file with mode: 0644]
recipes/shr/initscripts-shr/palmpre/reboot [new file with mode: 0644]
recipes/shr/initscripts-shr_0.0.1.bb

diff --git a/recipes/shr/initscripts-shr/palmpre/halt b/recipes/shr/initscripts-shr/palmpre/halt
new file mode 100644 (file)
index 0000000..6b3dc0d
--- /dev/null
@@ -0,0 +1,25 @@
+#! /bin/sh
+#
+# halt         Execute the halt command.
+#
+# Version:      @(#)halt  2.84-2  07-Jan-2002  miquels@cistron.nl
+#
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+
+# See if we need to cut the power.
+if test -x /etc/init.d/ups-monitor
+then
+       /etc/init.d/ups-monitor poweroff
+fi
+
+# Don't shut down drives if we're using RAID.
+hddown="-h"
+if grep -qs '^md.*active' /proc/mdstat
+then
+       hddown=""
+fi
+
+/sbin/tellbootie shutdown
+
+: exit 0
diff --git a/recipes/shr/initscripts-shr/palmpre/reboot b/recipes/shr/initscripts-shr/palmpre/reboot
new file mode 100644 (file)
index 0000000..195f540
--- /dev/null
@@ -0,0 +1,11 @@
+#! /bin/sh
+#
+# reboot       Execute the reboot command.
+#
+# Version:      @(#)reboot  2.75  22-Jun-1998  miquels@cistron.nl
+#
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+
+echo -n "Rebooting... "
+/sbin/tellbootie
index 397cff7..88f89e1 100644 (file)
@@ -5,7 +5,7 @@ DEPENDS = ""
 RDEPENDS_${PN} = "procps"
 LICENSE = "GPL"
 PV = "0.0.1"
-PR = "r21"
+PR = "r22"
 
 RCONFLICTS_${PN} = "initscripts"