diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-11-30 19:44:14 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-11-30 19:44:14 +0100 |
commit | 3833d8708e387ffa02f5dca972b0119461cb8629 (patch) | |
tree | ac3ac32284b1c72ad01b6cbb7dc69a5caf24390d /scripts | |
parent | 37769eb666aa614b76df9b537db35c2c70e3ac7a (diff) |
wireless: fix channel check
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/netifd-wireless.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/netifd-wireless.sh b/scripts/netifd-wireless.sh index 67ba38b..a67e350 100644 --- a/scripts/netifd-wireless.sh +++ b/scripts/netifd-wireless.sh @@ -46,11 +46,11 @@ _wdev_prepare_channel() { hwmode_n="${hwmode##n}" case "$channel" in - 0|auto) + ""|0|auto) channel=0 auto_channel=1 ;; - [0-9]+) ;; + [0-9]*) ;; *) wireless_setup_failed "INVALID_CHANNEL" ;; |