diff options
author | Patrick Simianer <pks@pks.rocks> | 2018-06-12 13:49:10 +0200 |
---|---|---|
committer | Patrick Simianer <pks@pks.rocks> | 2018-06-12 13:49:10 +0200 |
commit | aced0c8f5600d62cc98524d81c9fa6422151dc62 (patch) | |
tree | 6439a268413a9048561bbc153902710185134dba /net-profile | |
parent | 621e4da7236a107ef9267847281dbecb7ed3236a (diff) |
net-profile: support wlp device name prefixes
Diffstat (limited to 'net-profile')
-rwxr-xr-x | net-profile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net-profile b/net-profile index 7cb353d..607cb5b 100755 --- a/net-profile +++ b/net-profile @@ -1,6 +1,9 @@ #!/bin/sh DEV=`ls -1 /sys/class/net | grep wlan` +if [[ $DEV == "" ]]; then + DEV=`ls -1 /sys/class/net | grep wlp` +fi setup_wifi() { |