diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2015-10-20 16:47:09 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2015-10-20 16:47:09 +0200 |
commit | 8dbe632aa9044f010e8045a92eccfe6f44ff7a2a (patch) | |
tree | 9627717786e9b5d465a72af4612c6cef1f5491d1 /recipes-core | |
parent | a1d6fd350ab5e82adb80307a06b8c51a4d41d4ce (diff) |
apalis/colibri_t20/30 aka tegras: fix usb rndis operation
We noticed that our latest move to using systemd/networkd leaves the
rndis0 interface down. Manually bringing the link up solved the issue.
As a workaround add upping the link to our start-rndis.sh script.
Diffstat (limited to 'recipes-core')
-rw-r--r-- | recipes-core/usb-rndis/files/tegra/start-rndis.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/recipes-core/usb-rndis/files/tegra/start-rndis.sh b/recipes-core/usb-rndis/files/tegra/start-rndis.sh index a3b4e00..13efda3 100644 --- a/recipes-core/usb-rndis/files/tegra/start-rndis.sh +++ b/recipes-core/usb-rndis/files/tegra/start-rndis.sh @@ -5,9 +5,11 @@ case "$1" in echo 0 > /sys/class/android_usb/android0/enable echo rndis > /sys/class/android_usb/android0/functions echo 1 > /sys/class/android_usb/android0/enable + ip link set rndis0 up ;; stop) + ip link set rndis0 down echo 0 > /sys/class/android_usb/android0/enable ;; esac |