X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage2%2Fpkg%2Fsysvinit;h=4882a697bb2370aa6b8817cc75f086e05f3a66d4;hb=42efcc9186e9aa339fda829882a87b5df766293e;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..4882a69 --- a/stage2/pkg/sysvinit +++ b/stage2/pkg/sysvinit @@ -1,19 +1,15 @@ #!/bin/bash -hvconfig_pre() +hvbuild() { 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 + make -j ${MAKEJOBS} -C src + make -C src install } -hvbuild() +hvbuild_post() { - 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} }