#!/bin/bash . /etc/sysconfig/network cd /etc/sysconfig/network-scripts . network-functions CONFIG=$1 [ -f "$CONFIG" ] || CONFIG=ifcfg-$CONFIG source_config # disable the radio if [ "$RADIOCTRL" == "yes" ]; then iwconfig $DEVICE txpower off fi if [ "$WPA" = "yes" -a -x /usr/sbin/wpa_supplicant ]; then killall wpa_supplicant fi