Vorbereitung auf upstart
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_hald@5536 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
parent
183b335203
commit
b82d011a94
24
etc/init/hald.conf
Normal file
24
etc/init/hald.conf
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
description "Hardware Abstraction Layer daemon startup"
|
||||||
|
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
||||||
|
version 1.0
|
||||||
|
emits none special
|
||||||
|
|
||||||
|
start on (runlevel [2345] and (started dbus))
|
||||||
|
stop on runlevel [S016]
|
||||||
|
|
||||||
|
console none
|
||||||
|
|
||||||
|
pre-start script
|
||||||
|
if [ ! -f /usr/share/pci.ids ]; then
|
||||||
|
if [ -f /usr/share/pci.ids.gz ]; then
|
||||||
|
gzip -d -c /usr/share/pci.ids.gz >/usr/share/pci.ids
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if [ ! -f /usr/share/usb.ids ]; then
|
||||||
|
if [ -f /usr/share/usb.ids.gz ]; then
|
||||||
|
gzip -d -c /usr/share/usb.ids.gz >/usr/share/usb.ids
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
end script
|
||||||
|
|
||||||
|
exec /usr/sbin/hald --daemon=no --verbose=yes --use-syslog
|
32
init/genpkg
32
init/genpkg
|
@ -25,18 +25,20 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
WDIR=`pwd`
|
if [ -d /var/install/sysvinit* ]; then
|
||||||
cd etc/init.d
|
WDIR=`pwd`
|
||||||
chmod 755 dbus
|
cd etc/init.d
|
||||||
mkdir rc{0,1,2,3,4,5,6}.d
|
chmod 755 dbus
|
||||||
for i in 0 1 6; do
|
mkdir rc{0,1,2,3,4,5,6}.d
|
||||||
cd rc$i.d
|
for i in 0 1 6; do
|
||||||
ln -s ../hald K70hald
|
cd rc$i.d
|
||||||
cd ..
|
ln -s ../hald K70hald
|
||||||
done
|
cd ..
|
||||||
for i in 2 3 4 5; do
|
done
|
||||||
cd rc$i.d
|
for i in 2 3 4 5; do
|
||||||
ln -s ../hald S14hald
|
cd rc$i.d
|
||||||
cd ..
|
ln -s ../hald S14hald
|
||||||
done
|
cd ..
|
||||||
cd $WDIR
|
done
|
||||||
|
cd $WDIR
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user