diff --git a/meta-digi-dey/recipes-core/busybox/busybox/busybox-acpid b/meta-digi-dey/recipes-core/busybox/busybox/busybox-acpid index 14799d06c..167b14afb 100644 --- a/meta-digi-dey/recipes-core/busybox/busybox/busybox-acpid +++ b/meta-digi-dey/recipes-core/busybox/busybox/busybox-acpid @@ -1,39 +1,51 @@ #!/bin/sh -DAEMON=/sbin/acpid -NAME=acpid -DESC="Busybox ACPI daemon." -ARGS="-M /etc/acpi/acpid.map" - -test -f $DAEMON || exit 0 +#=============================================================================== +# +# busybox-acpid +# +# Copyright (C) 2014 by Digi International Inc. +# All rights reserved. +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License version 2 as published by +# the Free Software Foundation. +# +# +# !Description: Busybox acpid bootscript +# +#=============================================================================== set -e -case "$1" in - start) - echo -n "starting $DESC: $NAME... " - start-stop-daemon -S -b -n $NAME -a $DAEMON -- $ARGS - echo "done." - ;; - stop) - echo -n "stopping $DESC: $NAME... " - start-stop-daemon -K -n $NAME - echo "done." - ;; - restart) - echo -n "restarting $DESC: $NAME... " - $0 stop - $0 start - echo "done." - ;; - reload) - echo -n "reloading $DESC: $NAME... " - killall -HUP $(basename ${DAEMON}) - echo "done." - ;; - *) - echo "Usage: $0 {start|stop|restart|reload}" - exit 1 - ;; -esac +DAEMON="/sbin/acpid" +NAME="acpid" +DESC="Busybox ACPI daemon" +ARGS="-M /etc/acpi/acpid.map" -exit 0 +[ -x "${DAEMON}" ] || exit 0 + +case "$1" in + start) + echo -n "Starting $DESC: " + start-stop-daemon -S -b -n $NAME -a $DAEMON -- $ARGS + echo "done" + ;; + stop) + echo -n "Stopping $DESC: " + start-stop-daemon -K -q -n $NAME + echo "done" + ;; + restart) + $0 stop + $0 start + ;; + reload) + echo -n "Reloading $DESC: " + killall -HUP $(basename ${DAEMON}) + echo "done" + ;; + *) + echo "Usage: $0 {start|stop|restart|reload}" + exit 1 + ;; +esac diff --git a/meta-digi-dey/recipes-core/busybox/busybox/busybox-ntpd b/meta-digi-dey/recipes-core/busybox/busybox/busybox-ntpd old mode 100755 new mode 100644 index 91a37634f..896bed5c7 --- a/meta-digi-dey/recipes-core/busybox/busybox/busybox-ntpd +++ b/meta-digi-dey/recipes-core/busybox/busybox/busybox-ntpd @@ -31,14 +31,12 @@ case "$1" in ;; stop) echo -n "Stopping $DESC: " - start-stop-daemon -K -n $NAME + start-stop-daemon -K -q -n $NAME echo "done" ;; restart) - echo -n "Restarting $DESC: " $0 stop $0 start - echo "done" ;; reload) echo -n "Reloading $DESC: " @@ -50,5 +48,3 @@ case "$1" in exit 1 ;; esac - -exit 0 diff --git a/meta-digi-dey/recipes-core/busybox/busybox/busybox-static-nodes b/meta-digi-dey/recipes-core/busybox/busybox/busybox-static-nodes old mode 100755 new mode 100644