mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 10:52:57 +02:00
wpa_supplicant: better service
This commit is contained in:
parent
cf4a5c2cbd
commit
ab4af60ccf
3 changed files with 25 additions and 3 deletions
15
srcpkgs/wpa_supplicant/files/wpa_supplicant/auto
Normal file
15
srcpkgs/wpa_supplicant/files/wpa_supplicant/auto
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# find interface from wpa_supplicant-*.conf files
|
||||||
|
for f in /etc/wpa_supplicant/wpa_supplicant-*.conf \
|
||||||
|
/etc/wpa_supplicant-*.conf; do
|
||||||
|
case "$f" in *"/wpa_supplicant-*.conf") continue ;; esac
|
||||||
|
iface=${f#*/wpa_supplicant-}
|
||||||
|
if [ -z "$AUTO" ]; then
|
||||||
|
AUTO="${AUTO} -c ${f} -i ${iface%.conf}"
|
||||||
|
else
|
||||||
|
AUTO="${AUTO} -N -c ${f} -i ${iface%.conf}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# match all configuration
|
||||||
|
[ -r /etc/wpa_supplicant/wpa_supplicant.conf ] &&
|
||||||
|
AUTO="${AUTO} -M -c /etc/wpa_supplicant/wpa_supplicant.conf"
|
|
@ -1,4 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
[ -r ./conf ] && . ./conf
|
if [ -r ./conf ]; then
|
||||||
|
. ./conf
|
||||||
|
: ${OPTS:=-M -c ${CONF_FILE:-/etc/wpa_supplicant/wpa_supplicant.conf} ${WPA_INTERFACE:+-i ${WPA_INTERFACE}} -s}
|
||||||
|
else
|
||||||
|
. ./auto
|
||||||
|
OPTS="${AUTO} -s"
|
||||||
|
fi
|
||||||
|
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
exec wpa_supplicant -M -c ${CONF_FILE:-/etc/wpa_supplicant/wpa_supplicant.conf} ${WPA_INTERFACE:+-i ${WPA_INTERFACE}} ${OPTS:--s}
|
exec wpa_supplicant ${OPTS}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
pkgname=wpa_supplicant
|
pkgname=wpa_supplicant
|
||||||
reverts="2.7_1"
|
reverts="2.7_1"
|
||||||
version=2.6
|
version=2.6
|
||||||
revision=15
|
revision=16
|
||||||
build_wrksrc="$pkgname"
|
build_wrksrc="$pkgname"
|
||||||
short_desc="WPA/WPA2/IEEE 802.1X Supplicant"
|
short_desc="WPA/WPA2/IEEE 802.1X Supplicant"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
||||||
|
|
Loading…
Add table
Reference in a new issue