[問題] openwrt中uci config 如何跟程式連動
各位大大好
目前因為工作關係, 想要寫一個process 以及新增一些相關的 uci configuration
目前想要參照openwrt 的作法, 想要把程式跟 uci configuration 進行連動
因此現在在觀察uci 與 程式之間的連動關係
但是目前還沒看到程式 在 start 時候如何去調用uci configation
因此想要請教各位大大是否有相關的經驗可以分享
ex.
openwrt 有一些 DHCP 相關的配置如下
#uci show dhcp
dhcp.lan=dhcp
dhcp.lan.interface=lan
dhcp.lan.start=33
dhcp.lan.leasetime=12h
dhcp.lan.staticipMAX=8
dhcp.lan.lan_dns=dnsRelay,FromISP,FromISP
dhcp.lan.limit=36
.............
重新啟動 dhcp, 應是透過 /etc/init.d/dnsmasq restart
但是目前還看不到dhcp server 如何讀取uci configuration 並且帶入上述的設定檔
如大大有相關經驗的, 是否可以分享給小弟, 小弟感激不盡!!
THX~
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.235.207.61
※ 文章網址: http://www.ptt.cc/bbs/Linux/M.1412848326.A.237.html
→
10/09 19:13, , 1F
10/09 19:13, 1F
→
10/09 19:14, , 2F
10/09 19:14, 2F
→
10/09 19:17, , 3F
10/09 19:17, 3F
→
10/11 22:30, , 4F
10/11 22:30, 4F
→
10/11 22:31, , 5F
10/11 22:31, 5F
→
10/11 23:11, , 6F
10/11 23:11, 6F
→
10/11 23:12, , 7F
10/11 23:12, 7F
Linux 近期熱門文章
PTT數位生活區 即時熱門文章