X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fcis-hal;h=9a0bc7eb054ae0468bbc1677cab2839df397610e;hb=5b913b7b528bb69a0c90583b8776d6d26b9cb189;hp=3b66cadf772b46fefdb80289caf905237794e015;hpb=16cc35ba4890382ee9368a176e4f5a7fa773b7a6;p=hvlinux.git diff --git a/stage3/cis-hal b/stage3/cis-hal index 3b66cad..9a0bc7e 100755 --- a/stage3/cis-hal +++ b/stage3/cis-hal @@ -1,4 +1,6 @@ #!/bin/sh +set -o errexit + # First argument of this script is the package name. # Reading system configuration informations, functions and package versions. @@ -6,29 +8,27 @@ source ../sysinfos source ../functions source ../packages-list -CUR_DIR=$(pwd) - # Applying patches (if any) -apply_patches ${1} && +apply_patches ${1} -hv_groupadd -g 19 haldaemon && +hv_groupadd -g 19 haldaemon hv_useradd -c HAL-Daemon-User -d /dev/null -u 19 \ - -g haldaemon -s /bin/false haldaemon && + -g haldaemon -s /bin/false haldaemon -cd ${LFS_TMP}/${1}-build && +cd ${LFS_TMP}/${1}-build ../${1}/configure \ --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib/hal \ --localstatedir=/var \ - --with-hwdata=/usr/share/pciutils/pci.ids && -make && -make install && -install -v -m755 -d /var/run/hald && -ldconfig && + --with-hwdata=/usr/share/pciutils/pci.ids +make +make install +install -v -m755 -d /var/run/hald +ldconfig # Bootscript -install -v -m740 ${CUR_DIR}/bootscripts/hald /etc/rc.d/init.d && +install -v -m740 ${SCRDIR}/bootscripts/hald /etc/rc.d/init.d # script-name start stop bootscript_add_rc3 hald 93 19 @@ -36,10 +36,9 @@ bootscript_add_rc3 hald 93 19 # If the system-wide D-BUS daemon was running during the # installation of HAL, ensure you stop and restart the # D-BUS daemon before attempting to start the hald daemon. -#/etc/rc.d/init.d/dbus restart && +#/etc/rc.d/init.d/dbus restart # Starting daemon #/etc/rc.d/init.d/hal start -# Return last error exit $?