projects
/
hvlinux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix empty "Applications" menu in pcmanfm
[hvlinux.git]
/
stage2
/
pkg
/
sysvinit
diff --git
a/stage2/pkg/sysvinit
b/stage2/pkg/sysvinit
index
4a80bd8
..
4882a69
100644
(file)
--- a/
stage2/pkg/sysvinit
+++ b/
stage2/pkg/sysvinit
@@
-1,19
+1,15
@@
#!/bin/bash
#!/bin/bash
-hv
config_pre
()
+hv
build
()
{
cd ${LFS_TMP}/${PACKAGE}
{
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}
}
}