1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2020-02-06 08:22:54 +01:00
parent a64bba3705
commit db67dcbffa

View 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