20-set-ssid 321 B

123456789101112
  1. _MAC=$(iw wlan0 info | awk 'BEGIN { FS=":" } /addr/ { print $5$6 }')
  2. _MAC="Superglue-$_MAC-rescue"
  3. [ $(uci get wireless.@wifi-iface[0].ssid) != $_MAC ] && (
  4. uci set wireless.@wifi-iface[0].ssid=$_MAC
  5. uci commit wireless
  6. wifi
  7. /etc/init.d/network restart
  8. /etc/init.d/dnsmasq restart
  9. )
  10. exit 0