215 |
echo "Include SysV init Compat symlinks" |
echo "Include SysV init Compat symlinks" |
216 |
# create SysV compatibility symlinks. systemctl/systemd are smart |
# create SysV compatibility symlinks. systemctl/systemd are smart |
217 |
# enough to detect in which way they are called. |
# enough to detect in which way they are called. |
218 |
minstalldir /sbin || die |
minstalldir /usr/sbin || die |
219 |
mlink ../usr/lib/systemd/systemd /sbin/init || die |
mlink ../lib/systemd/systemd /usr/sbin/init || die |
220 |
local i |
local i |
221 |
for i in reboot halt poweroff shutdown telinit runlevel |
for i in reboot halt poweroff shutdown telinit runlevel |
222 |
do |
do |
223 |
mlink ../usr/bin/systemctl /sbin/${i} || die |
mlink ../bin/systemctl /usr/sbin/${i} || die |
224 |
done |
done |
225 |
else |
else |
226 |
echo "Using sysvinit package for SysV compat" |
echo "Using sysvinit package for SysV compat" |