1 PACKAGES += chromium-browser ssh bridge-utils dnsmasq iptables make nmap openbsd-inetd bluez-tools
6 webui := http://localhost/
7 include modules/nodm.mk
13 dtoverlay=mcp3008:spi0-0-present,spi0-32768-speed
17 export oktopus_dnsmasq oktopus_btnap oktopus_eth oktopus_rclocal
19 define oktopus_dnsmasq :=
20 listen-address=192.168.82.1
24 dhcp-range=192.168.82.16,192.168.82.254,48h
26 address=/#/192.168.82.1
32 iface eth0 inet static
37 define oktopus_btnap :=
47 define oktopus_rclocal :=
50 modprobe w1-gpio pullup=1
53 while ! hciconfig hci0; do sleep 1; done
54 bt-network -s nap br0 &
56 hciconfig hci0 sspmode 1
61 | grep -oE '[0-9A-F:]{17}' \
63 bt-device --set "$$mac" Trusted 1
67 /srv/gummikraken/hatch.sh &
71 _config: ${CFGROOT}/etc/dnsmasq.conf ${CFGROOT}/etc/network/interfaces.d/btnap ${CFGROOT}/etc/rc.local
72 _config: ${CFGROOT}/etc/inetd.conf ${CFGROOT}/etc/network/interfaces.d/eth
73 _config: ${CFGROOT}/usr/local/bin/teesock ${CFGROOT}/srv/gummikraken
75 ${CFGROOT}/etc/dnsmasq.conf: ${CFGROOT}
76 printf '%s\n' "$$oktopus_dnsmasq" >"$@"
78 ${CFGROOT}/etc/network/interfaces.d/btnap: ${CFGROOT}
80 printf '%s\n' "$$oktopus_btnap" >"$@"
82 ${CFGROOT}/etc/network/interfaces.d/eth: ${CFGROOT}
84 printf '%s\n' "$$oktopus_eth" >"$@"
86 ${CFGROOT}/etc/rc.local: ${CFGROOT}
87 # chroot "$${CFGROOT}" systemctl enable rc-local
88 printf '%s\n' "$$oktopus_rclocal" >"$@"
91 ${CFGROOT}/usr/local/bin/teesock: teesock/teesock.arm ${CFGROOT}
94 ${CFGROOT}/srv/gummikraken: gummikraken/ ${CFGROOT}
96 sed -i 's;http://141.45.146.235:8200;http://oktopus:8200;' "$@/oktopus_frontend/dist/bundle.js"
98 .PHONY: gummikraken_clone
100 [ -d gummikraken/.git ] || git clone https://git.tools.f4.htw-berlin.de/phaensch/gummikraken.git "gummikraken/"
102 gummikraken/: gummikraken_clone
104 -git -C $@ submodule init
105 -git -C $@ submodule update --remote
107 teesock/teesock.arm: teesock/
108 make -C $< "$(notdir $@)"
112 git clone https://git.tools.f4.htw-berlin.de/phaensch/teesock.git "$@"
114 ${CFGROOT}/etc/inetd.conf: gummikraken/
115 cp "$</inetd.conf" "$@"