From 1e96940cb086825cff9a42aeb1af9ee724d2f285 Mon Sep 17 00:00:00 2001 From: Ole Tange Date: Fri, 18 Jan 2019 16:06:09 +0100 Subject: [PATCH] wifi-reload: Split start into starthw and startnm. --- wifi-reload/wifi-reload | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/wifi-reload/wifi-reload b/wifi-reload/wifi-reload index 9d7f841..86b996e 100755 --- a/wifi-reload/wifi-reload +++ b/wifi-reload/wifi-reload @@ -63,10 +63,12 @@ stop() { sudo kill -9 $PID || sudo killall -9 NetworkManager } -start() { +starthw() { parallel -j1 sudo modprobe ::: $modules sudo rfkill unblock all - sleep 1 +} + +startnm() { #sudo service network-manager start sudo NetworkManager & #sudo /etc/init.d/network-manager restart @@ -79,12 +81,15 @@ config() { sudo bash -c 'cat >> /etc/resolv.conf' < /etc/resolvconf/resolv.conf.d/head #sudo iwconfig wls1 essid Turris #sudo iwconfig wls1 essid Leif + sudo iwconfig wls1 essid SKYbroadbandCC95 + sudo wpa_supplicant -c/etc/wpa_supplicant.conf -i$IF -d & sudo dhclient $IF & - sudo wpa_supplicant -Dwext -c/etc/wpa_supplicant.conf -i$IF -d & } stop -start +starthw +config wlp3s0 +#startnm if tty -s ; then # STDIN is terminal true timeout 12 dmesg -Tw &