4 # Required-Start: mountkernfs $local_fs
5 # Required-Stop: $local_fs
8 # Short-Description: Configure wireless interfaces
9 # Description: Tails-specific wireless configuration
12 # Author: amnesia <amnesia@boum.org>
14 # PATH should only include /usr/* if it runs after the mountnfs.sh script
16 DESC
="Tails-specific wireless configuration"
18 IWCONFIG
=/sbin
/iwconfig
19 SCRIPTNAME
=/etc
/init.d
/$NAME
21 # Exit if the package is not installed
22 [ -x "$IWCONFIG" ] ||
exit 0
24 # Load the VERBOSE setting and other rcS variables
27 # Define LSB log_* functions.
28 # Depend on lsb-base (>= 3.2-14) to ensure that this file is present
29 # and status_of_proc is working.
30 .
/lib
/lsb
/init-functions
34 wdevs
=`iwconfig 2>/dev/null | grep -oE '^[^ ]+'`
35 for dev
in ${wdevs}; do
36 iwconfig
${dev} power on
42 [ "$VERBOSE" != no
] && log_daemon_msg
"Setting up $DESC" "$NAME"
45 0|
1) [ "$VERBOSE" != no
] && log_end_msg
0 ;;
46 2) [ "$VERBOSE" != no
] && log_end_msg
1 ;;
49 restart|reload|stop|force-reload
)
53 echo "Usage: $SCRIPTNAME start" >&2