mirror of https://github.com/OpenIPC/firmware.git
remove lights and modules, light logs to dmesg
parent
7dfb46e95d
commit
ad404b7242
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,9 +9,6 @@ iface eth0 inet static
|
||||||
|
|
||||||
auto wlan0
|
auto wlan0
|
||||||
iface wlan0 inet dhcp
|
iface wlan0 inet dhcp
|
||||||
pre-up light red
|
|
||||||
pre-up wireless
|
pre-up wireless
|
||||||
post-up wireless
|
post-up wireless
|
||||||
post-up light green
|
|
||||||
post-down wireless
|
post-down wireless
|
||||||
post-down light red
|
|
||||||
|
|
|
@ -19,7 +19,5 @@ fi
|
||||||
# Ingenic T21
|
# Ingenic T21
|
||||||
if [ "$CONFIG" = "t21_lite_defconfig" ]; then
|
if [ "$CONFIG" = "t21_lite_defconfig" ]; then
|
||||||
gpio clear 50
|
gpio clear 50
|
||||||
modprobe cfg80211
|
|
||||||
modprobe mac80211
|
|
||||||
modprobe 8188fu
|
modprobe 8188fu
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue