OpenWRT 设置脚本自动更新hosts访问不可描述的站点
来源:互联网 发布:mac 键盘符号 编辑:程序博客网 时间:2024/04/30 13:42
小米路由刷了PandoraBox之后简直就像发现了新大陆,各种好玩啊~今天又发现个计划任务很不错
01 06 * * * wget -q https://raw.githubusercontent.com/racaljk/hosts/master/hosts -O /etc/hosts --no-check-certificate ; /etc/init.d/dnsmasq restart
每天早上6:01会从github上下载最新的hosts文件更新路由器内部解析,可以打开不少不可描述的站点呢.
我SSH到路由器上先手工执行了一下计划任务,发现报错
[root@PandoraBox:/etc]#wget -q https://raw.githubusercontent.com/racaljk/hosts/master/hosts -O /etc/hosts --no-check-certificatewget: not an http or ftp url: https://raw.githubusercontent.com/racaljk/hosts/master/hosts
原来PandoraBox(其实也就是OpenWRT)里面默认的wget命令是由Busybox提供的,而且默认不支持https协议,于是在OpenWRT官网上找到了以下解决办法:
The default wget in OpenWRT is provided by Busybox, which does not support SSL. If you want to use SSL (https) URLs, you can install the real wget:
opkg updateopkg install wget
/usr/bin/wget points now to the full version.搞定~嗨起来!
阅读全文
1 0
- OpenWRT 设置脚本自动更新hosts访问不可描述的站点
- 〖Linux〗自动更新Hosts的一个脚本
- 设置Hosts 访问Google网站
- ubuntu下使用Shell脚本和Scrapy进行hosts自动更新
- chrome访问google的hosts文件设置,测试好用
- letsencrypt的自动更新脚本
- openwrt station模式设置脚本
- 跨站点脚本编制描述及解决方法
- Openwrt 的sysupgrade脚本
- 修改本地hosts表用域名访问本地站点
- 修改本地hosts表用域名访问本地站点 .
- 修改本地hosts,使用域名访问本地站点
- 永久更新google hosts的一些站点
- 更新hosts的python脚本
- 自动更新hosts.bat
- 通过hosts设置访问Google服务
- ubuntu下设置apache虚拟站点及hosts开发PHP
- 通过设置host访问appspot上的站点
- HTTP请求方法
- 有一种感情叫做放不下
- 泡妞秘籍二
- Android中几种主流网络框架比较
- mutex和 condition 的同步机制
- OpenWRT 设置脚本自动更新hosts访问不可描述的站点
- Linux下的信号量----生产者与消费者
- jQuery总结
- jQuery的语法结构
- jquery
- SAP HANA的Odata数据前台显示
- jsp基础语法
- 1004 n^n的末位数字
- 自定义XML