aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorNickolay Ledovskikh <nledovskikh@gmail.com>2016-12-16 14:14:05 +0300
committerJohn Crispin <john@phrozen.org>2016-12-20 09:35:35 +0100
commit6439e396772a67bf058ff76b15cb9a6dec1882cc (patch)
treece61c1d4e7f630f5ab5b6b95c2604a8d0d4d8adc /package
parent13ab314b0b4a8106c8325f5bdf1232b6896f637f (diff)
downloadupstream-6439e396772a67bf058ff76b15cb9a6dec1882cc.tar.gz
upstream-6439e396772a67bf058ff76b15cb9a6dec1882cc.tar.bz2
upstream-6439e396772a67bf058ff76b15cb9a6dec1882cc.zip
uqmi: add support of using device symlinks.
It's useful when using multiple usb devices that should be bound to certain usb ports. Symlinks are created by hotplug handlers. Signed-off-by: Nickolay Ledovskikh <nledovskikh@gmail.com>
Diffstat (limited to 'package')
-rwxr-xr-xpackage/network/utils/uqmi/files/lib/netifd/proto/qmi.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
index 05b92425ad..cab9cb9121 100755
--- a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
+++ b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
@@ -42,6 +42,8 @@ proto_qmi_setup() {
proto_set_available "$interface" 0
return 1
}
+
+ device="$(readlink -f $device)"
[ -c "$device" ] || {
echo "The specified control device does not exist"
proto_notify_error "$interface" NO_DEVICE