Commit 1e96940c authored by Ole Tange's avatar Ole Tange

wifi-reload: Split start into starthw and startnm.

parent b28d1121
......@@ -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 &
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment