1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-13 19:11:51 +00:00
openmptcprouter-feeds/openmptcprouter/files/etc/uci-defaults/2090-omr-wwan
2020-02-06 08:22:54 +01:00

13 lines
No EOL
203 B
Bash
Executable file

#!/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