[oe-commits] Simon Busch : initscripts-shr: add modified version of halt/ reboot scripts for palmpre machine

git version control git at git.openembedded.org
Sat Jan 15 12:50:02 UTC 2011


Module: openembedded.git
Branch: org.openembedded.dev
Commit: e401549bd493dd5ac05b9ce5f809f84c177dfe5e
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=e401549bd493dd5ac05b9ce5f809f84c177dfe5e

Author: Simon Busch <morphis at gravedo.de>
Date:   Sat Jan 15 12:56:59 2011 +0100

initscripts-shr: add modified version of halt/reboot scripts for palmpre machine

Signed-off-by: Simon Busch <morphis at gravedo.de>

---

 recipes/shr/initscripts-shr/palmpre/halt   |   25 +++++++++++++++++++++++++
 recipes/shr/initscripts-shr/palmpre/reboot |   11 +++++++++++
 recipes/shr/initscripts-shr_0.0.1.bb       |    2 +-
 3 files changed, 37 insertions(+), 1 deletions(-)

diff --git a/recipes/shr/initscripts-shr/palmpre/halt b/recipes/shr/initscripts-shr/palmpre/halt
new file mode 100644
index 0000000..6b3dc0d
--- /dev/null
+++ b/recipes/shr/initscripts-shr/palmpre/halt
@@ -0,0 +1,25 @@
+#! /bin/sh
+#
+# halt		Execute the halt command.
+#
+# Version:      @(#)halt  2.84-2  07-Jan-2002  miquels at 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
index 0000000..195f540
--- /dev/null
+++ b/recipes/shr/initscripts-shr/palmpre/reboot
@@ -0,0 +1,11 @@
+#! /bin/sh
+#
+# reboot	Execute the reboot command.
+#
+# Version:      @(#)reboot  2.75  22-Jun-1998  miquels at cistron.nl
+#
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+
+echo -n "Rebooting... "
+/sbin/tellbootie
diff --git a/recipes/shr/initscripts-shr_0.0.1.bb b/recipes/shr/initscripts-shr_0.0.1.bb
index 397cff7..88f89e1 100644
--- a/recipes/shr/initscripts-shr_0.0.1.bb
+++ b/recipes/shr/initscripts-shr_0.0.1.bb
@@ -5,7 +5,7 @@ DEPENDS = ""
 RDEPENDS_${PN} = "procps"
 LICENSE = "GPL"
 PV = "0.0.1"
-PR = "r21"
+PR = "r22"
 
 RCONFLICTS_${PN} = "initscripts"
 





More information about the Openembedded-commits mailing list