|
|
@ -22,7 +22,7 @@ ip l set eth1 up &> /dev/null |
|
|
# maybe we have found that essid |
|
|
# maybe we have found that essid |
|
|
( |
|
|
( |
|
|
sleep 2 # give it some time to get the essid |
|
|
sleep 2 # give it some time to get the essid |
|
|
if iwconfig eth1 | grep -q 'ESSID:"MyWLAN"'; then |
|
|
|
|
|
|
|
|
if iwlist eth1 scan | grep -q 'ESSID:"MyWLAN"'; then |
|
|
echo bar > /etc/network/profile |
|
|
echo bar > /etc/network/profile |
|
|
fi |
|
|
fi |
|
|
) &> /dev/null & |
|
|
) &> /dev/null & |
|
|
|