From: Arne Fitzenreiter Date: Mon, 23 Nov 2009 17:18:39 +0000 (+0100) Subject: Fix that crontab was replaced at ramdisk restore by inital version. X-Git-Tag: v2.9-beta1~586^2~1 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=f07424189ca0f0909c3b3e332410b8042b55ecf3 Fix that crontab was replaced at ramdisk restore by inital version. --- diff --git a/src/initscripts/init.d/tmpfs b/src/initscripts/init.d/tmpfs index 41d6a1df96..0e5a1e1e46 100644 --- a/src/initscripts/init.d/tmpfs +++ b/src/initscripts/init.d/tmpfs @@ -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/