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
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
|
|
|
@ -9,9 +9,6 @@ iface eth0 inet static
|
|||
|
||||
auto wlan0
|
||||
iface wlan0 inet dhcp
|
||||
pre-up light red
|
||||
pre-up wireless
|
||||
post-up wireless
|
||||
post-up light green
|
||||
post-down wireless
|
||||
post-down light red
|
||||
|
|
|
@ -19,7 +19,5 @@ fi
|
|||
# Ingenic T21
|
||||
if [ "$CONFIG" = "t21_lite_defconfig" ]; then
|
||||
gpio clear 50
|
||||
modprobe cfg80211
|
||||
modprobe mac80211
|
||||
modprobe 8188fu
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue