diff options
author | Nickolay Ledovskikh <nledovskikh@gmail.com> | 2016-12-16 14:14:05 +0300 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-12-20 09:35:35 +0100 |
commit | 13ab314b0b4a8106c8325f5bdf1232b6896f637f (patch) | |
tree | 63cc741f2af5c9f9ffc2c3b704caf1dba4839a91 /package/network/utils/comgt/files/directip.sh | |
parent | cf62a177103293b651482fb20447384f3c478d23 (diff) | |
download | mtk-20170518-13ab314b0b4a8106c8325f5bdf1232b6896f637f.zip mtk-20170518-13ab314b0b4a8106c8325f5bdf1232b6896f637f.tar.gz mtk-20170518-13ab314b0b4a8106c8325f5bdf1232b6896f637f.tar.bz2 |
comgt: 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/network/utils/comgt/files/directip.sh')
-rw-r--r-- | package/network/utils/comgt/files/directip.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package/network/utils/comgt/files/directip.sh b/package/network/utils/comgt/files/directip.sh index 79b8c32..381bfb0 100644 --- a/package/network/utils/comgt/files/directip.sh +++ b/package/network/utils/comgt/files/directip.sh @@ -27,6 +27,7 @@ proto_directip_setup() { [ -n "$ctl_device" ] && device=$ctl_device + device="$(readlink -f $device)" [ -e "$device" ] || { proto_notify_error "$interface" NO_DEVICE proto_set_available "$interface" 0 |