added nellboard post routines (not yet completed!)
authorhackbard <hackbard@hackdaworld.org>
Fri, 17 Jul 2015 15:45:58 +0000 (17:45 +0200)
committerhackbard <hackbard@hackdaworld.org>
Fri, 17 Jul 2015 15:45:58 +0000 (17:45 +0200)
post_routines/nellboard/dnsmasq [new file with mode: 0644]
post_routines/nellboard/interfaces [new file with mode: 0644]
post_routines/nellboard/leds [new file with mode: 0644]
post_routines/nellboard/nelldev [new file with mode: 0644]

diff --git a/post_routines/nellboard/dnsmasq b/post_routines/nellboard/dnsmasq
new file mode 100644 (file)
index 0000000..ee96468
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+cat > /etc/dnsmasq.conf << EOF
+port=0
+no-resolv
+no-poll
+interface=usb0
+dhcp-range=172.17.17.5,172.17.17.10,12h
+dhcp-host=00:03:23:23:23:23,172.17.17.16
+dhcp-option=3
+EOF
+
diff --git a/post_routines/nellboard/interfaces b/post_routines/nellboard/interfaces
new file mode 100644 (file)
index 0000000..a705cb6
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+cat > /etc/network/interfaces << EOF
+auto lo
+iface lo inet loopback
+
+auto usb0
+iface usb0 inet static
+       address 172.17.17.17
+EOF
+
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
+
diff --git a/post_routines/nellboard/nelldev b/post_routines/nellboard/nelldev
new file mode 100644 (file)
index 0000000..ba8de5e
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# nellcmd
+cp -r /files/nelldev /
+cd /nelldev/linux/nellcmd
+make
+ln -s /nelldev/linux/nellcmd/nellcmd /bin
+
+# web
+