udpecho: fix shellcheck error

This commit is contained in:
suvendhu 2023-02-16 11:03:34 +05:30 committed by Vivek Kumar Dutta
parent 406de53d91
commit 5639e84185
2 changed files with 3 additions and 3 deletions

View file

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=udpecho PKG_NAME:=udpecho
PKG_VERSION:=2.0.3 PKG_VERSION:=2.0.4
LOCAL_DEV:=0 LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1) ifneq ($(LOCAL_DEV),1)

View file

@ -37,11 +37,11 @@ start_service() {
stop_service() { stop_service() {
# Remove the USPechoserver ports created earlier # Remove the USPechoserver ports created earlier
while iptables -nL zone_wan_input --line-numbers | grep "Open UDPechoserver port" > /dev/null; do while iptables -nL zone_wan_input --line-numbers | grep "Open UDPechoserver port" > /dev/null; do
iptables -D zone_wan_input $(iptables -nL zone_wan_input --line-numbers | grep "Open UDPechoserver port" | head -1|awk '{print $1}'); iptables -D zone_wan_input "$(iptables -nL zone_wan_input --line-numbers | grep "Open UDPechoserver port" | head -1|awk '{print $1}')";
done done
while ip6tables -nL zone_wan_input --line-numbers | grep "Open UDPechoserver port" > /dev/null; do while ip6tables -nL zone_wan_input --line-numbers | grep "Open UDPechoserver port" > /dev/null; do
ip6tables -D zone_wan_input $(ip6tables -nL zone_wan_input --line-numbers | grep "Open UDPechoserver port" | head -1|awk '{print $1}'); ip6tables -D zone_wan_input "$(ip6tables -nL zone_wan_input --line-numbers | grep "Open UDPechoserver port" | head -1|awk '{print $1}')";
done done
plus_enable="$(uci -q -c /var/state get udpechoserver.udpechoserver.plus)" plus_enable="$(uci -q -c /var/state get udpechoserver.udpechoserver.plus)"