From 103ba3bf973a7ac4c04a13bdc38c1b0502ad1a1a 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 934477d41..aba2fce12 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 }