X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage2%2Fpkg%2Fsysvinit;h=38229b149420781b6252dddebfabe561501afd67;hb=2121ae9154ff063eef0defe0a9208663062a2d01;hp=4a80bd88b86230e00873c2bdd6776ab8007594a9;hpb=b5bfb2006502b57fab234345a2393fd04e6d55ad;p=hvlinux.git diff --git a/stage2/pkg/sysvinit b/stage2/pkg/sysvinit old mode 100755 new mode 100644 index 4a80bd8..38229b1 --- a/stage2/pkg/sysvinit +++ b/stage2/pkg/sysvinit @@ -1,19 +1,8 @@ #!/bin/bash -hvconfig_pre() +hvbuild_post() { - cd ${LFS_TMP}/${PACKAGE} - - sed -i 's@Sending processes@& configured via /etc/inittab@g' src/init.c - - # A maintained version of the wall program was installed earlier by - # Util-linux-ng. Suppress the installation of Sysvinit's version: - sed -i -e 's/utmpdump wall/utmpdump/' \ - -e 's/mountpoint.1 wall.1/mountpoint.1/' src/Makefile -} - -hvbuild() -{ - make -j ${MAKEJOBS} -C src - make -C src install + chown root:shutdown /sbin/{halt,poweroff,reboot,shutdown} + chmod 750 /sbin/{halt,poweroff,reboot,shutdown} + chmod u+s /sbin/{halt,poweroff,reboot,shutdown} }