diff --git a/imgs/client-wifi.sh b/imgs/client-wifi.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f25baedbf77eac803f0426182b5c26a496d57af --- /dev/null +++ b/imgs/client-wifi.sh @@ -0,0 +1,12 @@ +#!/bin/bash +# nsfarm:client +################################################################################## +# Client on WiFi +################################################################################## +set -e + +wait4network + +# Install wpa_supplicant +apk add wpa_supplicant-openrc +rc-update add wpa_supplicant default diff --git a/imgs/client.sh b/imgs/client.sh new file mode 100644 index 0000000000000000000000000000000000000000..2c9ff374765caae2cee7623e35e1d63781f565d5 --- /dev/null +++ b/imgs/client.sh @@ -0,0 +1,17 @@ +#!/bin/bash +# nsfarm:base-alpine +################################################################################## +# Common image for clients on LAN +################################################################################## +set -e + +wait4network + +# Add openssh client to access router shell +apk add openssh-client + +# Configure LAN1 interface for static local network +cat >> /etc/network/interfaces <<EOF +auto lan +iface lan inet dhcp +EOF diff --git a/imgs/client/root/.ssh/config b/imgs/client/root/.ssh/config new file mode 100644 index 0000000000000000000000000000000000000000..85dce25e2e0467110a692abb06344b1df174bd90 --- /dev/null +++ b/imgs/client/root/.ssh/config @@ -0,0 +1,5 @@ + +Host 192.168.* + # No confirmation of fingerprint on first connection + StrictHostKeyChecking no +