19 lines
366 B
Bash
Executable File
19 lines
366 B
Bash
Executable File
#!/bin/sh
|
|
|
|
get_main_address() {
|
|
case "$board" in
|
|
tl-wdr3600|tl-wdr4300)
|
|
uci get wireless.radio1.macaddr
|
|
;;
|
|
*)
|
|
uci get wireless.radio0.macaddr
|
|
;;
|
|
esac
|
|
}
|
|
|
|
uci set network.freifunk.proto='none'
|
|
uci set network.freifunk.auto='1'
|
|
uci set network.freifunk.accept_ra='1'
|
|
uci set network.freifunk.macaddr=$(get_main_address)
|
|
uci commit network
|