- 博客(3)
- 收藏
- 关注
原创 openwrt启用定时器检测断网重连
脚本放到root底下 使用成功会生成日志文件.log #!/bin/sh #sleep 100 DATE=`date +%Y-%m-%d-%H:%M:%S` tries=0 echo --- my_watchdog start --- while [[ $tries -lt 5 ]] do if /bin/ping -c 1 8.8.8.8 >/dev/null then echo --- exit --- #
2022-01-05 17:05:17
3222
原创 openwrt web 添加新页面
一. 要为LuCI增加一个新模块,首先需要创建两个文件,一个位于Controller(/usr/lib/lua/luci/controller/)下,定义模块的入口;另一个位于Model(/usr/lib/lua/luci/model/cbi/)下,为配置模块实际的代码。 二./usr/lib/lua/luci/controller/admin/switch.lua中注册选模块 /usr/lib/lua/luci/view 中添加对应的switch.htm 开发OpenWrt路由..
2021-12-09 18:00:03
641
原创 openwrt:Service “crond“ not found
原因是服务器名称为cron,所以指令应为 service cron start
2021-12-06 16:02:17
759
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人