projects
/
openwrt
/
staging
/
chunkeey.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
uqmi: add support of using device symlinks.
[openwrt/staging/chunkeey.git]
/
package
/
network
/
utils
/
uqmi
/
files
/
lib
/
netifd
/
proto
/
qmi.sh
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 05b92425ad67c85a601896e9dad3f205beb53ab0..cab9cb91211f0f92ab31d292a90d62e163cd2c65 100755
(executable)
--- 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