wombat.ch

your Partner for Network Design and CMS

Raspberry (Debian) Scripts


 problem with WLAN connection

#  vi /usr/local/bin/checkwifi.sh

# c

1 ping -c4 10.18.23.1 > /dev/null
2
3 if [ $? != 0 ]
4 then
5 echo "No network connection, restarting wlan0"
6 /sbin/ifdown 'wlan0'
7 sleep 5
8 /sbin/ifup --force 'wlan0'
9 fi
 --> Link

 For the ersten boot

 

 
Code: /etc/wpa_supplicant/wpa_supplicant.conf
  1. ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
  2. update_config=1
  3. country=DE
  4. network={
  5. ssid="SSID"
  6. scan_ssid=1
  7. psk="PASSWORT!!!"
  8. key_mgmt=WPA-PSK
  9. }
 

RSS Feed

part of ...

Linux Counter

Disqus

 

Learning Network

Seti@home & Boinc

myBonic

statistik

 


Who is Online

We have 141 guests and no members online

We have 97 guests, one bot and no members online


one bot:
1 x BOT for JCE