mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-05 22:07:06 +08:00
fix autoreboot crontab not restart issue (#3770)
This commit is contained in:
parent
abdf32b331
commit
103ba3bf97
@ -19,10 +19,12 @@ run_reboot()
|
|||||||
week="*"
|
week="*"
|
||||||
fi
|
fi
|
||||||
sed -i '/reboot/d' /etc/crontabs/root >/dev/null 2>&1
|
sed -i '/reboot/d' /etc/crontabs/root >/dev/null 2>&1
|
||||||
|
/etc/init.d/cron restart
|
||||||
echo "$minute $hour * * $week sleep 5 && touch /etc/banner && reboot" >> /etc/crontabs/root
|
echo "$minute $hour * * $week sleep 5 && touch /etc/banner && reboot" >> /etc/crontabs/root
|
||||||
echo "Auto REBOOT has started."
|
echo "Auto REBOOT has started."
|
||||||
else
|
else
|
||||||
sed -i '/reboot/d' /etc/crontabs/root >/dev/null 2>&1
|
sed -i '/reboot/d' /etc/crontabs/root >/dev/null 2>&1
|
||||||
|
/etc/init.d/cron restart
|
||||||
echo "Auto REBOOT has started."
|
echo "Auto REBOOT has started."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user