diff --git a/root_file_system/wr741nd/etc/config/wireless b/root_file_system/wr741nd/etc/config/wireless index 878bf77..330c9ed 100644 --- a/root_file_system/wr741nd/etc/config/wireless +++ b/root_file_system/wr741nd/etc/config/wireless @@ -19,9 +19,12 @@ config wifi-iface option ssid 'batman.oldenburg.freifunk.net' option mcast_rate 6000 # option bintval 1000 + option 'encryption' 'none' + option 'hidden' '1' config wifi-iface option device radio0 option network wlan option mode ap option ssid 'oldenburg.freifunk.net' + option 'encryption' 'none' diff --git a/root_file_system/wr741nd/etc/rc.local b/root_file_system/wr741nd/etc/rc.local index bc66ccd..f933cb3 100755 --- a/root_file_system/wr741nd/etc/rc.local +++ b/root_file_system/wr741nd/etc/rc.local @@ -5,11 +5,12 @@ HARDWARE_MACADDR=`ifconfig -a wlan0 | grep 'HWaddr' | awk '{ print $5}'` SOFTWARE_MACADDR=`uci get wireless.@wifi-device[0].macaddr` -#if [[ "$HARDWARE_MACADDR" != "$SOFTWARE_MACADDR" ]]; then -# uci set wireless.@wifi-device[0].macaddr=$HARDWARE_MACADDR -# uci commit -# reboot -#fi +if [[ "$HARDWARE_MACADDR" != "$SOFTWARE_MACADDR" ]]; then + uci set wireless.@wifi-device[0].macaddr=$HARDWARE_MACADDR + uci commit + sleep 30 + reboot +fi ifconfig br-mesh down ifconfig br-mesh up