From 4cfe38566b43f8fa8c780eba8b1f42e8c2d8efa2 Mon Sep 17 00:00:00 2001 From: khorsmann Date: Fri, 6 Jun 2014 19:11:28 +0200 Subject: [PATCH 1/3] interfaces example that used wpa_supplican roam --- etc/network/interfaces | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 etc/network/interfaces diff --git a/etc/network/interfaces b/etc/network/interfaces new file mode 100644 index 0000000..cdd0fdc --- /dev/null +++ b/etc/network/interfaces @@ -0,0 +1,12 @@ +# http://raspberrypi.stackexchange.com/questions/8267/wifi-connection-lost-after-about-12-hours +#/etc/network/interfaces + +auto lo + +iface lo inet loopback +iface eth0 inet dhcp + +allow-hotplug wlan0 +iface wlan0 inet manual + wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf +iface default inet dhcp From 4ffb944cc6ca0416e8c22e945c6aba9d4ce33ea2 Mon Sep 17 00:00:00 2001 From: khorsmann Date: Fri, 6 Jun 2014 19:15:32 +0200 Subject: [PATCH 2/3] Create wpa_supplicant.conf --- etc/wpa_supplicant/wpa_supplicant.conf | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 etc/wpa_supplicant/wpa_supplicant.conf diff --git a/etc/wpa_supplicant/wpa_supplicant.conf b/etc/wpa_supplicant/wpa_supplicant.conf new file mode 100644 index 0000000..5684cad --- /dev/null +++ b/etc/wpa_supplicant/wpa_supplicant.conf @@ -0,0 +1,13 @@ +#/etc/wpa_supplicant/wpa_supplicant.conf + +ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev +update_config=1 + +network={ + ssid="ssid_leave_the_quotes" + proto=WPA RSN + key_mgmt=WPA-PSK + pairwise=CCMP TKIP + group=CCMP TKIP + psk="password_leave_the_quotes" +} From ee07f577cc53e8c24b0335c79be59e298ff73ded Mon Sep 17 00:00:00 2001 From: khorsmann Date: Fri, 6 Jun 2014 20:55:55 +0200 Subject: [PATCH 3/3] Update WiFi_Check if you use non english locales, the grep "inet addr" failed. with LANG=C its always english. --- WiFi_Check | 1 + 1 file changed, 1 insertion(+) diff --git a/WiFi_Check b/WiFi_Check index 9de6f91..a8237f6 100644 --- a/WiFi_Check +++ b/WiFi_Check @@ -30,6 +30,7 @@ # # */5 * * * * /usr/local/bin/WiFi_Check # +export LANG=C ################################################################## # Settings # Where and what you want to call the Lockfile