fff-wireless: Hide errors if device doesn't have radios

Some output and exit status are hidden, as they are a valid behaviour
if the device doesn't have any radios.

Signed-off-by: Fabian Bläse <fabian@blaese.de>
Reviewed-by: Christian Dresel <fff@chrisi01.de>
This commit is contained in:
Fabian Bläse 2019-11-23 21:43:02 +01:00
parent 581eb9d469
commit 141f48389d
3 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=fff-wireless PKG_NAME:=fff-wireless
PKG_RELEASE:=10 PKG_RELEASE:=11
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)

View File

@ -49,9 +49,11 @@ configure() {
} }
apply() { apply() {
uci commit wireless uci -q commit wireless
return 0
} }
revert() { revert() {
uci revert wireless uci -q revert wireless
return 0
} }

View File

@ -8,7 +8,7 @@ wifiListRadio() {
return 1 return 1
fi fi
uci show wireless | sed -n 's,.*\.\([a-z0-9]*\)=wifi-device,\1,p' uci -q show wireless | sed -n 's,.*\.\([a-z0-9]*\)=wifi-device,\1,p'
return 0 return 0
} }