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
Ycarus (Yannick Chabanois) 25f95427e8 Increase delay for modem
2020-08-24 17:26:26 +02:00

14 lines
No EOL
218 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
/bin/sleep 5
/sbin/usbmode -l
/bin/sleep 3
/sbin/usbmode -s
exit 0
EOF
fi
exit 0