. /etc/boot.d/base-helper

# Set WLAN-Channel
case x$WLAN_CHANNEL in
    x) ;;
    *)
      WLAN_CHANNEL=`echo $WLAN_CHANNEL | sed 's/[a-zA-Z]*//g'`
      case "$WLAN_CHANNEL" in
        0) ;;
        *)
            # ipw2100 erlaubt Channelaenderungen *nur* im Mode "monitor".
            iwconfig $device mode monitor
            iwconfig $device channel $WLAN_CHANNEL
	    unset WLAN_CHANNEL
        ;;
      esac
    ;;
esac
