+++ /dev/null
-import serial
-
-ser = serial.Serial('/dev/ttyUSB0', 115200, timeout=5)
-for i in range(5):
- ser.write('AT^RESET\r')
- response = 'init'
- while (response != '') and ('OK' not in response):
- response = ser.readline()
- if 'OK' in response:
- break
\ No newline at end of file
#!/bin/bash
-/usr/bin/python /etc/ppp/reset_modem.py
-sleep 15
-/etc/ppp/wait-dialup-hardware 20
\ No newline at end of file
+/bin/echo 0 > /sys/class/leds/usb_otg2_vbus/brightness
+/bin/sleep 2
+/bin/echo 1 > /sys/class/leds/usb_otg2_vbus/brightness
+/etc/ppp/wait-dialup-hardware 20
file://options \
file://provider \
file://reset_modem.sh \
- file://reset_modem.py \
file://resolv.conf \
file://wait-dialup-hardware \
"
install -m 0664 ${WORKDIR}/options-mobile.base ${D}${sysconfdir}/ppp/options-mobile.base
install -m 0664 ${WORKDIR}/options-mobile ${D}${sysconfdir}/ppp/options
install -m 0775 ${WORKDIR}/reset_modem.sh ${D}${sysconfdir}/ppp/reset_modem.sh
- install -m 0775 ${WORKDIR}/reset_modem.py ${D}${sysconfdir}/ppp/reset_modem.py
install -m 0664 ${WORKDIR}/resolv.conf ${D}${sysconfdir}/ppp/resolv.conf
install -m 0775 ${WORKDIR}/wait-dialup-hardware ${D}${sysconfdir}/ppp/wait-dialup-hardware
ln -s -r ${D}${sysconfdir}/ppp/options-mobile.base ${D}${sysconfdir}/ppp/options-mobile