diff options
Diffstat (limited to 'system/hal/rc.hald')
-rw-r--r-- | system/hal/rc.hald | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/system/hal/rc.hald b/system/hal/rc.hald deleted file mode 100644 index 5a73edf1f9..0000000000 --- a/system/hal/rc.hald +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/sh -# Start/stop/restart the hal daemon: - -PIDFILE=/var/run/hald.pid - -hal_start() -{ - if [ -x /usr/sbin/hald ]; then - if [ $(uname -r | cut -d. -f1) -ge 2 ]; then - if [ $(uname -r | cut -d. -f2) -ge 6 ]; then - echo "Starting HAL daemon: /usr/sbin/hald" - /usr/sbin/hald --daemon=yes - else - echo "You must be running a 2.6 kernel for HAL to work. " - exit 1 - fi - else - echo "You must be running a 2.6 kernel for HAL to work. " - exit 1 - fi - fi -} - -hal_stop() -{ - kill $(cat $PIDFILE) || killall hald - rm -f $PIDFILE -} - -# See how we were called. -case "$1" in - start) - hal_start - ;; - stop) - hal_stop - ;; - restart) - hal_stop - sleep 1 - hal_start - ;; - *) - echo $"Usage: $0 {start|stop|restart}" - ;; -esac - |