mirror of
https://github.com/AuxXxilium/arc-addons.git
synced 2024-11-23 21:50:52 +07:00
ledcontrol: update
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
51fcb044f6
commit
e9f3d1d082
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user