summaryrefslogtreecommitdiff
path: root/package/network/utils/comgt/files/directip.sh
diff options
context:
space:
mode:
authorLorenzo Santina <lorenzo.santina@edu.unito.it>2017-09-11 15:27:53 +0200
committerMathias Kresin <dev@kresin.me>2017-09-13 08:07:39 +0200
commitd33f7905dfb39458ff2127237be22a54e806bdc9 (patch)
treeccbf9c3f1bb3aa3a29aeaf0bc43f425352c8950a /package/network/utils/comgt/files/directip.sh
parent4f162ac3ce3c37fa15561cc3de6a044ff3ace2bc (diff)
downloadmtk-20170518-d33f7905dfb39458ff2127237be22a54e806bdc9.zip
mtk-20170518-d33f7905dfb39458ff2127237be22a54e806bdc9.tar.gz
mtk-20170518-d33f7905dfb39458ff2127237be22a54e806bdc9.tar.bz2
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 <lorenzo.santina@edu.unito.it> [increase PKG_RELEASE, drop command substitution from directip.sh] Signed-off-by: Mathias Kresin <dev@kresin.em>
Diffstat (limited to 'package/network/utils/comgt/files/directip.sh')
-rw-r--r--package/network/utils/comgt/files/directip.sh3
1 files changed, 1 insertions, 2 deletions
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