Adding upstream version 1.104.1.
[live-boot-grml.git] / scripts / live-bottom / 25configure_init
index 1ed4445..e30261a 100755 (executable)
@@ -108,12 +108,10 @@ if [ -d /etc/rc0.d ]
 then
        # This has the nice side effect of the cron.{daily,weekly,monthly} jobs in
        # /etc/crontab remaining disabled, yet also not run by anacron
-       if [ -x /root/etc/init.d/anacron ]
+       if [ -x /root/usr/sbin/anacron ]
        then
-               for f in /root/etc/rc?.d/S??anacron
-               do
-                       mv ${f} ${f%/*}/K00anacron
-               done
+               chroot /root dpkg-divert --add --rename --quiet /usr/sbin/anacron
+               ln -s /bin/true /usr/sbin/anacron
        fi
 
        # No point, really