mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-25 18:32:57 +02:00
Fix that crontab was replaced at ramdisk restore by inital version.
This commit is contained in:
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user