systemd: create sysv compat symlinks for halt, poweroff, shutdown and reboot.
This commit is contained in:
parent
ab8f8d9bc2
commit
e3b05fcc03
1 changed files with 8 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'systemd'
|
||||
pkgname=systemd
|
||||
version=36
|
||||
revision=4
|
||||
revision=5
|
||||
distfiles="http://www.freedesktop.org/software/$pkgname/$pkgname-$version.tar.bz2"
|
||||
build_style=gnu_configure
|
||||
configure_args="--with-distro=other --with-rootdir= --localstatedir=/var
|
||||
|
@ -74,4 +74,11 @@ post_install()
|
|||
printf "d /run/console 755 root root\n" > \
|
||||
${DESTDIR}/usr/lib/tmpfiles.d/console.conf
|
||||
chmod 644 ${DESTDIR}/usr/lib/tmpfiles.d/console.conf
|
||||
|
||||
# Create halt, reboot, shutdown, poweroff compat symlinks. Some
|
||||
# applications expect them for "normal" use!
|
||||
vmkdir sbin
|
||||
for f in halt poweroff shutdown reboot; do
|
||||
ln -sf /bin/systemctl ${DESTDIR}/sbin/${f}
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue