From d33f7905dfb39458ff2127237be22a54e806bdc9 Mon Sep 17 00:00:00 2001 From: Lorenzo Santina Date: Mon, 11 Sep 2017 15:27:53 +0200 Subject: treewide: fix shellscript syntax errors/typos Fix multiple syntax errors in shelscripts (of packages only) These errors were causing many conditions to not working properly Signed-off-by: Lorenzo Santina [increase PKG_RELEASE, drop command substitution from directip.sh] Signed-off-by: Mathias Kresin --- package/network/utils/comgt/files/directip.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'package/network/utils/comgt/files/directip.sh') diff --git a/package/network/utils/comgt/files/directip.sh b/package/network/utils/comgt/files/directip.sh index 381bfb0..3452fa5 100644 --- a/package/network/utils/comgt/files/directip.sh +++ b/package/network/utils/comgt/files/directip.sh @@ -44,8 +44,7 @@ proto_directip_setup() { return 1 } - cardinfo=$(gcom -d "$device" -s /etc/gcom/getcardinfo.gcom) - [ -n $(echo "$cardinfo" | grep -q "Sierra Wireless") ] || { + gcom -d "$device" -s /etc/gcom/getcardinfo.gcom | grep -q "Sierra Wireless" || { proto_notify_error "$interface" BAD_DEVICE proto_block_restart "$interface" return 1 -- cgit v1.1