2
0
mirror of https://github.com/cilynx/rtl88x2bu synced 2025-08-22 02:01:55 +00:00
rtl88x2bu/runwpa
Max Görner 7d06cdc54a Remove trailing whitespaces
This commit removes all trailing whitespaces by a Bash oneliner:

    find -type f | grep -v '\.git' | xargs sed -i 's/\s\+$//'
2020-05-19 23:51:22 +02:00

21 lines
415 B
Bash

#!/bin/bash
if [ "`which iwconfig`" = "" ] ; then
echo "WARNING:Wireless tool not exist!"
echo " Please install it!"
exit
else
if [ `uname -r | cut -d. -f2` -eq 4 ]; then
wpa_supplicant -D ipw -c wpa1.conf -i wlan0
else
if [ `iwconfig -v |awk '{print $4}' | head -n 1` -lt 18 ] ; then
wpa_supplicant -D ipw -c wpa1.conf -i wlan0
else
wpa_supplicant -D wext -c wpa1.conf -i wlan0
fi
fi
fi