updated dwc for debian stretch (in ifconfig output theres' ":" after iface names)
This commit is contained in:
parent
b8011843d1
commit
5ff281d99d
|
@ -40,7 +40,7 @@ slog "[`date +%s`] * 1. Checking connectivity"
|
|||
|
||||
# (1) Get interface name #
|
||||
slog "[`date +%s`] * 2. Looking for wireless interface";
|
||||
IFACE=`sudo ifconfig -a | grep -P "^w" | awk '{print $1}' | head -n 1`;
|
||||
IFACE=`sudo ifconfig -a | grep -P "^w" | awk '{print $1}' | sed 's/:$//' | head -n 1`;
|
||||
sudo ifconfig $IFACE up;
|
||||
|
||||
# (2) Manage no IFACE found #
|
||||
|
|
Loading…
Reference in New Issue