OpenWRT新增 crontab開機預設執行

2021-06-22 19:42:16 字數 545 閱讀 6137

openwrt系統預設已經新增了crond,只是沒有配置預設配置引數,致使服務起不來。

1. 修改啟動指令碼/etc/ini.d/cron

/etc/rc.d/s50cron為/etc/ini.d/cron的鏈結

#!/bin/sh /etc/rc.common

start=50

service_use_pid=1

start ()

}stop()

2. 新增預設啟動程式/etc/crontabs/root

檔名為:使用者名稱

內容格式: 數字為分鐘,後面的是定時執行的指令碼

*/1 * * * * /etc/init.d/disconnuser &

*/1 * * * * /etc/init.d/repuserstatus &

*/6 * * * * /etc/init.d/sysupgrade &

*/1 * * * * /etc/init.d/checkroute

【【

openwrt之新增OpenWrt軟體包概述

新增軟體包 makefile引入檔案 openwrt 使用三個 makefile 的子檔案,分別為 include topdir rules.mk include include dir kernel.mk include include dir package.mk 由這些 makefile 子檔...

openwrt 新增web介面

要給自己的開發板新增上 web 介面,只需要在 openwrt原始碼中,將 luci 配置進去即可。首先進入 openwrt原始碼頂層目錄,然後執行 make menuconfig 命令。sz yy szyy pc home linux openwrt trunk make menuconfig 然...

Openwrt中新增ndpi支援

ndpi ntop deep package inspection 能實現深度包檢測,雖然openwrt沒有原生支援,但是有高手已經將其移植到openwrt之上。新增ndpi的方法如下 2.在openwrt原始碼目錄的package資料夾中新建乙個資料夾,資料夾名隨意,譬如ipt ndpi 3.開啟...