From 6b00c90d709a01822027fb9986ec8ace605dd991 Mon Sep 17 00:00:00 2001 From: "\"Steven J. Hill\"" Date: Wed, 9 May 2007 22:48:41 +0000 Subject: Rename all INIT scripts to have the numerical prefixes to easily see the start-up order. --- package/hal/S98haldaemon | 56 ++++++++++++++++++++++++++++++++++++++++++++++++ package/hal/hal.mk | 2 +- package/hal/init-hal | 56 ------------------------------------------------ 3 files changed, 57 insertions(+), 57 deletions(-) create mode 100755 package/hal/S98haldaemon delete mode 100755 package/hal/init-hal (limited to 'package/hal') diff --git a/package/hal/S98haldaemon b/package/hal/S98haldaemon new file mode 100755 index 000000000..40ea0f4d3 --- /dev/null +++ b/package/hal/S98haldaemon @@ -0,0 +1,56 @@ +#!/bin/sh +# +# haldaemon: HAL daemon +# +# chkconfig: 345 98 02 +# description: This is a daemon for collecting and maintaing information \ +# about hardware from several sources. \ +# See http://www.freedesktop.org/Software/hal +# +# processname: hald +# pidfile: /var/run/haldaemon.pid +# + +# Sanity checks. +[ -x /usr/sbin/hald ] || exit 0 + +RETVAL=0 + +start() { + echo -n "Starting HAL daemon: " + hald + RETVAL=$? + echo "done" + [ $RETVAL -eq 0 ] && touch /var/lock/subsys/haldaemon +} + +stop() { + echo -n "Stopping HAL daemon: " + + killall hald + RETVAL=$? + echo "done" + if [ $RETVAL -eq 0 ]; then + rm -f /var/lock/subsys/haldaemon + rm -f /var/run/haldaemon.pid + fi +} + +# See how we were called. +case "$1" in + start) + start + ;; + stop) + stop + ;; + restart) + stop + sleep 3 + start + ;; + *) + echo $"Usage: $0 {start|stop|restart}" + ;; +esac +exit $RETVAL diff --git a/package/hal/hal.mk b/package/hal/hal.mk index 3d35a4c67..130d0da46 100644 --- a/package/hal/hal.mk +++ b/package/hal/hal.mk @@ -74,7 +74,7 @@ $(TARGET_DIR)/$(HAL_TARGET_BINARY): $(HAL_DIR)/hald/hald rm -rf $(TARGET_DIR)/usr/lib/libhal*.la rm -rf $(TARGET_DIR)/usr/lib/hal rm -rf $(TARGET_DIR)/etc/PolicyKit - $(INSTALL) -m 0755 -D package/hal/init-hal $(TARGET_DIR)/etc/init.d/S98haldaemon + $(INSTALL) -m 0755 -D package/hal/S98haldaemon $(TARGET_DIR)/etc/init.d rm -rf $(TARGET_DIR)/etc/rc.d for file in hald-addon-acpi* hald-addon-cpufreq \ hald-addon-keyboard hald-addon-pmu \ diff --git a/package/hal/init-hal b/package/hal/init-hal deleted file mode 100755 index 40ea0f4d3..000000000 --- a/package/hal/init-hal +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/sh -# -# haldaemon: HAL daemon -# -# chkconfig: 345 98 02 -# description: This is a daemon for collecting and maintaing information \ -# about hardware from several sources. \ -# See http://www.freedesktop.org/Software/hal -# -# processname: hald -# pidfile: /var/run/haldaemon.pid -# - -# Sanity checks. -[ -x /usr/sbin/hald ] || exit 0 - -RETVAL=0 - -start() { - echo -n "Starting HAL daemon: " - hald - RETVAL=$? - echo "done" - [ $RETVAL -eq 0 ] && touch /var/lock/subsys/haldaemon -} - -stop() { - echo -n "Stopping HAL daemon: " - - killall hald - RETVAL=$? - echo "done" - if [ $RETVAL -eq 0 ]; then - rm -f /var/lock/subsys/haldaemon - rm -f /var/run/haldaemon.pid - fi -} - -# See how we were called. -case "$1" in - start) - start - ;; - stop) - stop - ;; - restart) - stop - sleep 3 - start - ;; - *) - echo $"Usage: $0 {start|stop|restart}" - ;; -esac -exit $RETVAL -- cgit v1.2.3