mirror of https://github.com/OpenIPC/firmware.git
parent
b6696a8ecc
commit
c7b1f8497a
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
GPIO_RED=78
|
GPIO_RED=
|
||||||
GPIO_GREEN=75
|
GPIO_GREEN=
|
||||||
GPIO_BLUE=
|
GPIO_BLUE=
|
||||||
|
|
||||||
help() {
|
help() {
|
||||||
|
@ -14,7 +14,7 @@ setRed() {
|
||||||
if [ -n "$GPIO_RED" ]; then
|
if [ -n "$GPIO_RED" ]; then
|
||||||
[ $1 -eq 1 ] && gpio set "$GPIO_RED" || gpio clear "$GPIO_RED"
|
[ $1 -eq 1 ] && gpio set "$GPIO_RED" || gpio clear "$GPIO_RED"
|
||||||
else
|
else
|
||||||
echo "Red GPIO undefined"
|
echo "[INFO] Status Lights: Red GPIO undefined in /usr/sbin/light" > /dev/kmsg
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ setGreen() {
|
||||||
if [ -n "$GPIO_GREEN" ]; then
|
if [ -n "$GPIO_GREEN" ]; then
|
||||||
[ $1 -eq 1 ] && gpio set "$GPIO_GREEN" || gpio clear "$GPIO_GREEN"
|
[ $1 -eq 1 ] && gpio set "$GPIO_GREEN" || gpio clear "$GPIO_GREEN"
|
||||||
else
|
else
|
||||||
echo "Green GPIO undefined"
|
echo "[INFO] Status Lights: Green GPIO undefined in /usr/sbin/light" > /dev/kmsg
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ setBlue() {
|
||||||
if [ -n "$GPIO_BLUE" ]; then
|
if [ -n "$GPIO_BLUE" ]; then
|
||||||
[ $1 -eq 1 ] && gpio set "$GPIO_BLUE" || gpio clear "$GPIO_BLUE"
|
[ $1 -eq 1 ] && gpio set "$GPIO_BLUE" || gpio clear "$GPIO_BLUE"
|
||||||
else
|
else
|
||||||
echo "Blue GPIO undefined"
|
echo "[INFO] Status Lights: Blue GPIO undefined in /usr/sbin/light" > /dev/kmsg
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,3 +15,9 @@ if [ "$CONFIG" = "hi3516ev300_ultimate_defconfig" ]; then
|
||||||
echo 7 > /sys/class/gpio/unexport
|
echo 7 > /sys/class/gpio/unexport
|
||||||
modprobe mt7601usta
|
modprobe mt7601usta
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Ingenic T21
|
||||||
|
if [ "$CONFIG" = "t21_lite_defconfig" ]; then
|
||||||
|
gpio clear 50
|
||||||
|
modprobe 8188fu
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue