diff options
| author | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-04-10 07:26:30 +0800 |
|---|---|---|
| committer | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-04-10 07:26:30 +0800 |
| commit | a64930636462bf24118ca7266f699ce2b696e821 (patch) | |
| tree | 58d116ac5f03aa9e84ece6e4ffa6b489573042a4 /repos/extra/wpa_supplicant/run | |
| parent | ddd8e1a8fab2ac39396282a7c09ddf6eca219613 (diff) | |
| download | alicelinux-a64930636462bf24118ca7266f699ce2b696e821.tar.gz alicelinux-a64930636462bf24118ca7266f699ce2b696e821.zip | |
clang branch updated
Diffstat (limited to 'repos/extra/wpa_supplicant/run')
| -rwxr-xr-x | repos/extra/wpa_supplicant/run | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/repos/extra/wpa_supplicant/run b/repos/extra/wpa_supplicant/run new file mode 100755 index 00000000..65049c10 --- /dev/null +++ b/repos/extra/wpa_supplicant/run @@ -0,0 +1,12 @@ +#!/bin/sh +[ -f /etc/rc.conf ] && . /etc/rc.conf +if [ ! "$WIFI_DEV" ]; then + for i in /sys/class/net/*; do + [ -e $i/phy80211 ] && { + WIFI_DEV=${i##*/} + break + } + done +fi +[ "$WIFI_DEV" ] || exit 1 +exec wpa_supplicant -D nl80211 -i $WIFI_DEV -c /etc/wpa_supplicant.conf 2>&1 |