forked from freifunk-franken/firmware
show_info: Treat case of missing simple-tc package
Suppress error in show_info when simple-tc is not built into the firmware. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by: Fabian Bläse <fabian@blaese.de>
This commit is contained in:
parent
93cebbf3f7
commit
4bb31a75f2
|
@ -1,7 +1,7 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=fff-support
|
||||
PKG_RELEASE:=4
|
||||
PKG_RELEASE:=5
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
||||
|
||||
|
|
|
@ -159,13 +159,17 @@ echo "E-Mail Adresse: $(uci -q get 'fff.system.contact')"
|
|||
|
||||
echo ""
|
||||
echo "-> BITRATEN-BEGRENZUNG"
|
||||
if [ "$(uci -q get 'simple-tc.example.enabled')" = "1" ] ; then
|
||||
echo "Aktiv: ja"
|
||||
if [ -s "/etc/config/simple-tc" ]; then
|
||||
if [ "$(uci -q get 'simple-tc.example.enabled')" = "1" ] ; then
|
||||
echo "Aktiv: ja"
|
||||
else
|
||||
echo "Aktiv: nein"
|
||||
fi
|
||||
echo "Download-Limit: $(uci -q get 'simple-tc.example.limit_ingress') kBit/s"
|
||||
echo "Upload-Limit: $(uci -q get 'simple-tc.example.limit_egress') kBit/s"
|
||||
else
|
||||
echo "Aktiv: nein"
|
||||
echo "simple-tc nicht installiert."
|
||||
fi
|
||||
echo "Download-Limit: $(uci -q get 'simple-tc.example.limit_ingress') kBit/s"
|
||||
echo "Upload-Limit: $(uci -q get 'simple-tc.example.limit_egress') kBit/s"
|
||||
|
||||
if grep -q 'PORTORDER=' /etc/network.$board_name ; then
|
||||
portorder=$(awk -F= '/PORTORDER=/ { print $2 }' /etc/network.$board_name | sed "s/\"//g")
|
||||
|
|
Loading…
Reference in New Issue