ledcontrol: update

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-07-01 19:57:31 +02:00
parent 51fcb044f6
commit e9f3d1d082
7 changed files with 3 additions and 6 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -15,9 +15,5 @@ elif [ "${1}" = "off" ]; then
elif [ "${1}" = "blink" ]; then
echo "Blink Ugreen LED"
ugreen_leds_cli all -blink -color 255 255 255 -brightness 65
elif [ "${1}" = "install" ]; then
modprobe i2c-algo-bit
modprobe i2c-smbus
modprobe i2c-i801
fi
exit 0

View File

@ -12,9 +12,11 @@ if [ "${1}" = "late" ]; then
cp -vf "${0}" "/tmpRoot/usr/arc/addons/"
cp -vf /usr/lib/modules/i2c* /tmpRoot/usr/lib/modules/
cp -vf /usr/bin/i2c* /tmpRoot/usr/bin/
cp -vf /usr/bin/ledcontrol.sh /tmpRoot/usr/bin/ledcontrol.sh
cp -vf /usr/bin/ugreen_leds_cli /tmpRoot/usr/bin/ugreen_leds_cli
modprobe i2c-algo-bit
modprobe i2c-smbus
modprobe i2c-i801
mkdir -p "/tmpRoot/usr/lib/systemd/system"
DEST="/tmpRoot/usr/lib/systemd/system/ledcontrol.service"
@ -30,7 +32,6 @@ User=root
Restart=always
RestartSec=5
RemainAfterExit=yes
ExecStartPre=/usr/bin/ledcontrol.sh install
ExecStart=/usr/bin/ledcontrol.sh on
[Install]