Turn off odroid C2 LED at boot

Create a file /storage/.config/system.d/led.service

containing

[Unit]
Description=LED control

[Service]
User=root
Type=forking
ExecStart=bash -c “echo sd > /sys/class/leds/blue\:heartbeat/trigger”
TimeoutSec=0
RemainAfterExit=yes

[Install]
WantedBy=kodi.target

To flash blue led only when sd accessed.

then

# systemctl daemon-reload
# systemctl enable led.service
# systemctl start led.service

Squeezelite and kodi

Install the multimedia-tools in Program add-ons.

Create the following file:


[Unit]
Description=Squeezelite
Requires=network-online.service
After=network-online.service

[Service]
User=root
ExecStart=/storage/.kodi/addons/virtual.multimedia-tools/bin/squeezelite -n LivingRoom -o iec958:CARD=MicroII,DEV=0 -s 10.113.17.28
StartLimitBurst=10
StartLimitInterval=10m
Restart=always
RestartSec=5

[Install]
WantedBy=kodi.target

 

Adding appropriate options for squeezelite