aboutsummaryrefslogtreecommitdiffstats
path: root/main/wpa_supplicant/wpa_supplicant.initd
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2015-08-25 20:02:02 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-09-05 13:07:34 +0200
commit9caf156d9d19c7e10170e3595494f5158d0bb545 (patch)
treee386fd5af6b0a2b68d37b24c33cedb1dba112745 /main/wpa_supplicant/wpa_supplicant.initd
parenta9193cd105138a3f5ab566b9064604bb12aff378 (diff)
downloadaports-9caf156d9d19c7e10170e3595494f5158d0bb545.tar.bz2
aports-9caf156d9d19c7e10170e3595494f5158d0bb545.tar.xz
main/wpa_supplicant: simplify OpenRC service
Alpine only supports the Linux kernel.
Diffstat (limited to 'main/wpa_supplicant/wpa_supplicant.initd')
-rw-r--r--main/wpa_supplicant/wpa_supplicant.initd29
1 files changed, 6 insertions, 23 deletions
diff --git a/main/wpa_supplicant/wpa_supplicant.initd b/main/wpa_supplicant/wpa_supplicant.initd
index 38f879da8c..dea370bc56 100644
--- a/main/wpa_supplicant/wpa_supplicant.initd
+++ b/main/wpa_supplicant/wpa_supplicant.initd
@@ -20,29 +20,12 @@ depend()
find_wireless()
{
local iface=
-
- case "$RC_UNAME" in
- Linux)
- for iface in /sys/class/net/*; do
- if [ -e "$iface"/wireless -o \
- -e "$iface"/phy80211 ]
- then
- echo "${iface##*/}"
- return 0
- fi
- done
- ;;
- *)
- for iface in /dev/net/* $(ifconfig -l 2>/dev/null); do
- if ifconfig "${iface##*/}" 2>/dev/null | \
- grep -q "[ ]*ssid "
- then
- echo "${iface##*/}"
- return 0
- fi
- done
- ;;
- esac
+ for iface in /sys/class/net/*; do
+ if [ -e "$iface"/wireless -o -e "$iface"/phy80211 ]; then
+ echo "${iface##*/}"
+ return 0
+ fi
+ done
return 1
}