From 384cc42f5ec87f7182d402d2d424ab2bf78b5fea Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Wed, 2 Mar 2011 15:22:38 +0100 Subject: [PATCH] [scripts] only rc-update hald if /etc/init.d/hald exists --- scripts/remaster_generic_inner_chroot_script_after.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/remaster_generic_inner_chroot_script_after.sh b/scripts/remaster_generic_inner_chroot_script_after.sh index 7765fcd..66c96cf 100755 --- a/scripts/remaster_generic_inner_chroot_script_after.sh +++ b/scripts/remaster_generic_inner_chroot_script_after.sh @@ -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