added nellboard post routines (not yet completed!)
[outofuni/dib.git] / post_routines / nellboard / leds
diff --git a/post_routines/nellboard/leds b/post_routines/nellboard/leds
new file mode 100644 (file)
index 0000000..0cb6223
--- /dev/null
@@ -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
+