mirror of
https://github.com/HEYAHONG/CoreBoard-001
synced 2025-05-09 02:41:30 +08:00
完善wifi设置
This commit is contained in:
parent
4941aeb845
commit
855cd4fdeb
@ -3,8 +3,15 @@
|
|||||||
. /lib/functions.sh
|
. /lib/functions.sh
|
||||||
. /lib/functions/system.sh
|
. /lib/functions/system.sh
|
||||||
|
|
||||||
|
#等待br-lan准备好
|
||||||
|
while [ ! -d /sys/class/net/br-lan ]
|
||||||
|
do
|
||||||
|
sleep 5
|
||||||
|
logger -t Wifi -p daemon.info wait for br-lan!
|
||||||
|
done
|
||||||
|
|
||||||
#MAC地址
|
#MAC地址
|
||||||
Mac=`cat /sys/class/net/br-lan/address | sed 's/://g'`
|
Mac=`cat /sys/class/net/br-lan/address | sed 's/://g' | tr a-z A-Z`
|
||||||
|
|
||||||
default_wifi_ap() {
|
default_wifi_ap() {
|
||||||
uci -q batch <<-EOF
|
uci -q batch <<-EOF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user