#!/sbin/runscript # /etc/init.d/net.ra0 # John Brendler # 18 December 2008 depend() { need localmount use logger after net.lo provide net } start() { ebegin "Starting wireless network connection" start-stop-daemon --start \ --exec /usr/sbin/wpa_supplicant \ --pidfile /var/run/wpa_supplicant-ra0.pid \ -- -D wext -c /etc/wpa_supplicant/wpa_supplicant.conf \ -W -B -i ra0 -P /var/run/wpa_supplicant-ra0.pid wpa_cli -i ra0 -a /etc/wpa_supplicant/wpa_action.sh -B eend $? "Failed to start wireless network connection" } stop() { ebegin "Stopping wireless network connection" start-stop-daemon --stop \ --pidfile /var/run/wpa_supplicant-ra0.pid \ --exec /usr/sbin/wpa_supplicant eend $? "Failed to stop wireless network connection" }