openwrt-wifi自启

openwrt-wifi自启

/etc/init.d/wifiup

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#!/bin/sh /etc/rc.common

USE_PROCD=1
START=99

start_service() {
    procd_open_instance WifiUP
    procd_set_param command /sbin/wifi
    procd_append_param command up
    procd_set_param stdout 1
    procd_set_param stderr 1
    procd_close_instance
}
1
2
3
4
sed -i 's/\r//' /etc/init.d/wifiup
chmod +x /etc/init.d/wifiup
/etc/init.d/wifiup start
/etc/init.d/wifiup enable
使用 Hugo 构建
主题 StackJimmy 设计