找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 3309|回复: 3

K2官改固件计划任务怎么添加自动更新hosts?添加了为什么没用?

[复制链接]
发表于 2017-8-31 13:27 | 显示全部楼层 |阅读模式
我现在是在网上搜的这么写的。
16 13 * * * cd /etc/storage/dnsmasq;rm -rf hosts;wget --no-check-certificate https://raw.githubusercontent.com/sy618/hosts/master/ADFQ -O hosts

还看到一种是这么写的。
01 06 * * * wget -q https://raw.githubusercontent.com/racaljk/hosts/master/hosts -O /etc/hosts --no-check-certificate ; /etc/init.d/dnsmasq restart



这是我现在路由器的系统日志。谁能看懂告诉我是哪里错了?
Fri Jan  1 08:00:14 2016 daemon.err miniupnpd[2518]: sendto(udp_shutdown=-1): Bad file descriptor
Fri Jan  1 08:00:14 2016 daemon.err miniupnpd[2824]: could not open lease file: /var/upnp.leases
Fri Jan  1 08:00:14 2016 daemon.notice miniupnpd[2824]: HTTP listening on port 5000
Fri Jan  1 08:00:14 2016 daemon.warn miniupnpd[2824]: no HTTP IPv6 address, disabling IPv6
Fri Jan  1 08:00:14 2016 daemon.notice miniupnpd[2824]: Listening for NAT-PMP/PCP traffic on port 5351
Thu Aug 31 12:29:09 2017 cron.err crond[1258]: time disparity of 25069228 minutes detected
Thu Aug 31 12:30:01 2017 cron.info crond[1258]: crond: USER root pid 3251 cmd cd /etc/storage/dnsmasq;sudo rm -rf hosts;wget --no-check-certificate https://raw.githubusercontent.com/vokins/yhosts/master/hosts;wget --no-check-certifica https://raw.githubusercontent.com/racaljk/hosts/master/hosts -O 123;cat 123 >> hosts;sudo rm -rf 123
Thu Aug 31 12:34:52 2017 daemon.info dnsmasq-dhcp[2393]: DHCPDISCOVER(br-lan) 68:3e:34:89:d6:a0
Thu Aug 31 12:34:52 2017 daemon.info dnsmasq-dhcp[2393]: DHCPOFFER(br-lan) 192.168.2.111 68:3e:34:89:d6:a0
Thu Aug 31 12:34:52 2017 daemon.info dnsmasq-dhcp[2393]: DHCPREQUEST(br-lan) 192.168.2.111 68:3e:34:89:d6:a0
Thu Aug 31 12:34:52 2017 daemon.info dnsmasq-dhcp[2393]: DHCPACK(br-lan) 192.168.2.111 68:3e:34:89:d6:a0 MEIZU-PRO-6s
Thu Aug 31 12:48:20 2017 user.notice root: inet down!
Thu Aug 31 12:48:25 2017 user.notice root: inet up!
Thu Aug 31 12:48:38 2017 user.notice root: inet down!
Thu Aug 31 12:48:43 2017 user.notice root: inet up!
Thu Aug 31 13:06:13 2017 user.notice root: inet down!
Thu Aug 31 13:06:25 2017 user.notice root: inet up!
Thu Aug 31 13:06:48 2017 user.notice root: inet down!
Thu Aug 31 13:06:58 2017 user.notice root: inet up!
Thu Aug 31 13:16:01 2017 cron.info crond[1258]: crond: USER root pid 9750 cmd cd /etc/storage/dnsmasq;rm -rf hosts;wget --no-check-certificate https://raw.githubusercontent.com/sy618/hosts/master/ADFQ -O hosts


两段红色字体是我前后改的2次。这段是有什么问题吗?提前在这谢谢dalao了!!!
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2017-8-31 16:33 | 显示全部楼层
求大佬告知~
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-8-31 16:34 | 显示全部楼层
自己顶!!!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-9-10 20:09 | 显示全部楼层
老哥,弄好了吗,我上次弄也没成功
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-25 15:50

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表