Fix that crontab was replaced at ramdisk restore by inital version.

This commit is contained in:
Arne Fitzenreiter
2009-11-23 18:18:39 +01:00
parent 291ebf4f1d
commit f07424189c

View 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/