hald init überarbetiet. Hal mag nur entpackte usb/pci.ids files...

git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_hald@5348 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
kueller 2010-02-05 16:10:23 +00:00
parent 5385d7e50b
commit 304e915a51

View File

@ -36,6 +36,12 @@ source /etc/init.d/functions
case "$1" in
start)
if [ -f /usr/share/pci.ids.gz ]; then
gzip -d -c /usr/share/pci.ids.gz >/usr/share/pci.ids
fi
if [ -f /usr/share/usb.ids.gz ]; then
gzip -d -c /usr/share/usb.ids.gz >/usr/share/usb.ids
fi
if [ -f /var/run/hald.pid ]; then
if [ "`pgrep -P 1 hald`" == "`cat /var/run/hald.pid`" ]; then
echo -n "Hald already running"
@ -46,7 +52,7 @@ case "$1" in
fi
fi
echo -n "Starting Hardware Abstraction Layer Daemon"
loadproc /usr/sbin/hald --use-syslog
loadproc /usr/sbin/hald --verbose=yes --use-syslog
PID=`pgrep -P 1 hald`
echo $PID >/var/run/hald.pid
;;