You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
958 B
Plaintext
56 lines
958 B
Plaintext
4 years ago
|
#!/bin/sh
|
||
|
|
||
|
if [ -f /lib/ar71xx.sh ]; then
|
||
|
PLATFORM=ar71xx
|
||
|
. /lib/ar71xx.sh
|
||
|
elif [ -f /lib/ipq806x.sh ]; then
|
||
|
PLATFORM=ipq806x
|
||
|
. /lib/ipq806x.sh
|
||
|
fi
|
||
|
|
||
|
board=$(${PLATFORM}_board_name)
|
||
|
|
||
|
case "$board" in
|
||
|
dlan-hotspot)
|
||
|
echo 0 > /sys/class/gpio/gpio20/value
|
||
|
sleep 1
|
||
|
echo 1 > /sys/class/gpio/gpio20/value
|
||
|
;;
|
||
|
|
||
|
dlan-pro-500-wp)
|
||
|
echo 0 > /sys/class/gpio/gpio13/value
|
||
|
sleep 1
|
||
|
echo 1 > /sys/class/gpio/gpio13/value
|
||
|
;;
|
||
|
|
||
|
dlan-550-wifi)
|
||
|
echo 0 > /sys/class/gpio/gpio16/value
|
||
|
sleep 1
|
||
|
echo 1 > /sys/class/gpio/gpio16/value
|
||
|
;;
|
||
|
|
||
|
dlan-1000-ac)
|
||
|
echo 0 > /sys/class/gpio/gpio2/value
|
||
|
sleep 1
|
||
|
echo 1 > /sys/class/gpio/gpio2/value
|
||
|
;;
|
||
|
|
||
|
dlan-pro-1200-ac|\
|
||
|
dlan-pro-1200-n)
|
||
|
echo 0 > /sys/class/gpio/gpio13/value
|
||
|
sleep 1
|
||
|
echo 1 > /sys/class/gpio/gpio13/value
|
||
|
;;
|
||
|
|
||
|
devolo-home-control-cu)
|
||
|
echo 0 > /sys/class/gpio/gpio19/value
|
||
|
sleep 1
|
||
|
echo 1 > /sys/class/gpio/gpio19/value
|
||
|
;;
|
||
|
|
||
|
*)
|
||
|
echo "$0: unknown board $board" >&2
|
||
|
exit 1;
|
||
|
;;
|
||
|
esac
|