From f07424189ca0f0909c3b3e332410b8042b55ecf3 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Mon, 23 Nov 2009 18:18:39 +0100 Subject: [PATCH] Fix that crontab was replaced at ramdisk restore by inital version. --- src/initscripts/init.d/tmpfs | 5 +++++ 1 file changed, 5 insertions(+) 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/ -- 2.39.2