X-Git-Url: https://hackdaworld.org/gitweb/?p=outofuni%2Fdib.git;a=blobdiff_plain;f=post_routines%2Fnellboard%2Fleds;fp=post_routines%2Fnellboard%2Fleds;h=0cb6223aef0dcb873321a2f62b68b9c85a10999e;hp=0000000000000000000000000000000000000000;hb=e9a42258240b89a2050e2730bcfb473f36224ed9;hpb=e21020b66f28895b5085661744b1e65516a01b43 diff --git a/post_routines/nellboard/leds b/post_routines/nellboard/leds new file mode 100644 index 0000000..0cb6223 --- /dev/null +++ b/post_routines/nellboard/leds @@ -0,0 +1,17 @@ +#!/bin/bash + +cat > /lib/systemd/system/gled.service << EOF +[Unit] +Description=Switching on the green LED +After=sshd.service dnsmasq.service + +[Service] +Type=oneshot +ExecStart=/usr/bin/nellcmd gled on yled off + +[Install] +WantedBy=multi-user.target +EOF + +systemctl enable gled.service +