From 0b4108010d9c071dec91f8ffb2eba3eb23fccd7f Mon Sep 17 00:00:00 2001 From: brucewzp Date: Fri, 13 Mar 2020 12:21:36 +0800 Subject: [PATCH] fix autoreboot crontab not restart issue (#3770) --- package/lean/luci-app-autoreboot/root/etc/init.d/autoreboot | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/lean/luci-app-autoreboot/root/etc/init.d/autoreboot b/package/lean/luci-app-autoreboot/root/etc/init.d/autoreboot index 934477d415..aba2fce12a 100755 --- a/package/lean/luci-app-autoreboot/root/etc/init.d/autoreboot +++ b/package/lean/luci-app-autoreboot/root/etc/init.d/autoreboot @@ -19,10 +19,12 @@ run_reboot() week="*" fi 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 "Auto REBOOT has started." else sed -i '/reboot/d' /etc/crontabs/root >/dev/null 2>&1 + /etc/init.d/cron restart echo "Auto REBOOT has started." fi }