]>
git.ipfire.org Git - ipfire-2.x.git/blob - src/initscripts/packages/hostapd
9 for path
in /sys
/class
/net
/*; do
10 if [ -s "${path}/address" ] && [ "$(<${path}/address)" = "${address}" ]; then
25 eval $
(/usr
/local
/bin
/readhash
/var
/ipfire
/wlanap
/settings
)
29 interface
="$(find_interface "${INTERFACE}")"
30 if [ -z "${interface}" ]; then
31 boot_mesg
"Could not find interface with address ${INTERFACE} for wireless access point"
36 boot_mesg
"Starting hostapd... "
37 loadproc
/usr
/bin
/hostapd
-B /etc
/hostapd.conf
-i "${interface}"
41 boot_mesg
"Stopping hostapd..."
42 killproc
/usr
/bin
/hostapd
53 statusproc
/usr
/bin
/hostapd
57 echo "Usage: ${0} {start|stop|restart|status}"