From d9c0ea50099382ad2e21bdf132599bcd86fc500c Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 30 Oct 2025 10:56:29 +0100 Subject: [PATCH] openwrt/wifi: add minimal script for setting up a wifi+ssh accessible device --- openwrt/openwrt-wifi-with-ssh.sh | 55 ++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100755 openwrt/openwrt-wifi-with-ssh.sh diff --git a/openwrt/openwrt-wifi-with-ssh.sh b/openwrt/openwrt-wifi-with-ssh.sh new file mode 100755 index 0000000..7f168ab --- /dev/null +++ b/openwrt/openwrt-wifi-with-ssh.sh @@ -0,0 +1,55 @@ +#!/bin/sh +# 2025-10-30, Nico Schottelius +# Configure a device with a WAN port to allow ssh access and be IPv6 client + +if [ $# -ne 2 ]; then + echo "$0 ip-address ssid wifi-psk" + echo " ip-address: where to find the OpenWRT device" + echo " hostname: which hostname to set" + echo " ssid for the wifi" + echo " psk for the wifi" + exit 1 +fi + +my_ip=$1; shift +new_hostname=$1; shift +ssid=$1; shift +psk=$1; shift + +cat <