mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 00:41:17 +00:00
35 lines
736 B
Plaintext
35 lines
736 B
Plaintext
|
#!/bin/sh /etc/rc.common
|
||
|
|
||
|
START=15
|
||
|
STOP=10
|
||
|
|
||
|
boot() {
|
||
|
case $(board_name) in
|
||
|
netgear,lbr20)
|
||
|
echo "0" > /sys/class/gpio/lte_rst/value
|
||
|
echo "0" > /sys/class/gpio/lte_pwrkey/value
|
||
|
echo "0" > /sys/class/gpio/lte_usb_boot/value
|
||
|
echo "0" > /sys/class/gpio/lte_pwm/value
|
||
|
sleep 1
|
||
|
echo "1" > /sys/class/gpio/lte_pwm/value
|
||
|
echo "1" > /sys/class/gpio/lte_pwrkey/value
|
||
|
echo "1" > /sys/class/gpio/lte_rst/value
|
||
|
sleep 1
|
||
|
echo "0" > /sys/class/gpio/lte_pwrkey/value
|
||
|
sleep 1
|
||
|
echo "1" > /sys/class/gpio/lte_pwrkey/value
|
||
|
;;
|
||
|
esac
|
||
|
}
|
||
|
|
||
|
shutdown() {
|
||
|
case $(board_name) in
|
||
|
netgear,lbr20)
|
||
|
echo "0" > /sys/class/gpio/lte_pwrkey/value
|
||
|
sleep 1
|
||
|
echo "1" > /sys/class/gpio/lte_pwrkey/value
|
||
|
sleep 10
|
||
|
;;
|
||
|
esac
|
||
|
}
|