garypang13 4 years ago
parent
commit
f30d06eec8
1 changed files with 2 additions and 5 deletions
  1. 2 5
      devices/common/default-settings

+ 2 - 5
devices/common/default-settings

@@ -19,11 +19,8 @@ sed -i '/profile.d/d' /lib/upgrade/keep.d/base-files
 
 rm -rf /tmp/luci-*
 
-grep -q S99opkg /etc/crontabs/root ||
-	echo "0 0 * * * sh /etc/rc.d/S99opkg >/dev/null 2>&1" >> /etc/crontabs/root
-
-grep -q adblock /etc/crontabs/root ||
-	echo "0 0 * * * /etc/init.d/adblock reload >/dev/null 2>&1" >> /etc/crontabs/root
+sed -i '/S99opkg/d' /etc/crontabs/root
+echo "0 4 * * * sh /etc/rc.d/S99opkg >/dev/null 2>&1" >> /etc/crontabs/root
 
 uci set system.@rngd[0].enabled="1"
 uci commit system