systemd-compat-units.postinst 431 B

123456789101112131415161718
  1. cd $D/etc/init.d || exit 0
  2. echo "Disabling the following sysv scripts: "
  3. if [ -n "$D" ]; then
  4. OPTS="--root=$D"
  5. else
  6. OPTS=""
  7. fi
  8. for i in busybox-udhcpc hwclock networking nfsserver nfscommon syslog.busybox ; do
  9. if [ -e $i -o -e $i.sh ] && ! [ -e $D/etc/systemd/system/$i.service -o -e $D/lib/systemd/system/$i.service ] ; then
  10. echo -n "$i: "
  11. systemctl $OPTS mask $i.service
  12. fi
  13. done
  14. echo