mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Workaround for some usb key at boot
This commit is contained in:
parent
a64bba3705
commit
db67dcbffa
1 changed files with 13 additions and 0 deletions
13
openmptcprouter/files/etc/uci-defaults/2090-omr-wwan
Executable file
13
openmptcprouter/files/etc/uci-defaults/2090-omr-wwan
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "$(grep usbmode /etc/rc.local)" = "" ]; then
|
||||
sed -i 's:exit 0::g' /etc/rc.local
|
||||
cat <<-EOF >> /etc/rc.local
|
||||
/sbin/usbmode -l
|
||||
/bin/sleep 2
|
||||
/sbin/usbmode -s
|
||||
exit 0
|
||||
EOF
|
||||
fi
|
||||
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue