Fix that crontab was replaced at ramdisk restore by inital version.
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 23 Nov 2009 17:18:39 +0000 (18:18 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 23 Nov 2009 17:18:39 +0000 (18:18 +0100)
src/initscripts/init.d/tmpfs

index 41d6a1d..0e5a1e1 100644 (file)
@@ -72,6 +72,11 @@ case "$1" in
                evaluate_retval
                ;;
        restore)
+               if [ -e $RRDLOG.bak/cron/new.root ]; then
+                       if [ -e $RRDLOG.bak/cron/root ]; then
+                               rm -f $RRDLOG.bak/cron/new.root
+                       fi
+               fi
                if [ -e $RRDLOG.bak ];then
                        boot_mesg "Restore ramdisk..."
                        cp -pR $RRDLOG.bak/* $RRDLOG/