From: Simon Busch Date: Sat, 15 Jan 2011 11:56:59 +0000 (+0100) Subject: initscripts-shr: add modified version of halt/reboot scripts for palmpre machine X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e401549bd493dd5ac05b9ce5f809f84c177dfe5e;p=openembedded.git initscripts-shr: add modified version of halt/reboot scripts for palmpre machine Signed-off-by: Simon Busch --- diff --git a/recipes/shr/initscripts-shr/palmpre/halt b/recipes/shr/initscripts-shr/palmpre/halt new file mode 100644 index 0000000000..6b3dc0d8ed --- /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@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 0000000000..195f540d2f --- /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@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 397cff769d..88f89e193e 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"