[SOLVED] wlan0 without ip addr


to switch between different wifi found batch.

code: [select]
# wifi stop
wifi down

# copy new wlan configuration
cp /mnt/sd/wireless.intern /etc/config/wireless

# wifi start
wifi


it stop wifi, overwrite wireless configuration , restart wifi. sketch can connect new wifi. can't connect anymore yun webinterface.

ifconfig shows me there no ip adress wlan0.

code: [select]
wlan0     link encap:ethernet  hwaddr 90:a2:da:f0:44:20  
          up broadcast running multicast  mtu:1500  metric:1
          rx packets:4311 errors:0 dropped:163 overruns:0 frame:0
          tx packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          rx bytes:452856 (442.2 kib)  tx bytes:288 (288.0 b)


how can fix this?

you missing:

code: [select]
/etc/init.d/network  restart

at end of code.


you use uci api switch wifi well:

http://forum.arduino.cc/index.php?topic=216850.msg1586874#msg1586874






Arduino Forum > Products > Arduino Yún (Moderator: fabioc84) > [SOLVED] wlan0 without ip addr


arduino

Comments