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