forked from freifunk-franken/firmware
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:
parent
581eb9d469
commit
141f48389d
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue