wpa_supplicant: support OPTS in run script

This commit is contained in:
bougyman 2015-03-26 15:32:33 -05:00
parent 30db7a6cc4
commit fdf0104cb2
2 changed files with 3 additions and 1 deletions

View File

@ -1 +1,3 @@
WPA_INTERFACE=wlan0
# Uncommept to enable syslog logging instead of stdout
#OPTS="-s"

View File

@ -2,4 +2,4 @@
[ -r ./conf ] && . ./conf
: ${WPA_INTERFACE:=wlan0}
exec 2>&1
exec wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -i ${WPA_INTERFACE}
exec wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -i ${WPA_INTERFACE} ${OPTS}