[scripts] only rc-update hald if /etc/init.d/hald exists

This commit is contained in:
Fabio Erculiani 2011-03-02 15:22:38 +01:00
parent 51cc880a07
commit 384cc42f5e

View File

@ -14,9 +14,12 @@ rc-update add xdm boot
# consolekit must be run at boot level
rc-update add consolekit boot
rc-update del hald boot
rc-update del hald
rc-update add hald boot
# if it exists
if [ -f "/etc/init.d/hald" ]; then
rc-update del hald boot
rc-update del hald
rc-update add hald boot
fi
rc-update del music boot
rc-update add music default