From 1c67aa9f2e732749800f936b0a53779d03e23ea0 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sat, 21 Feb 2026 20:09:08 +0100 Subject: [PATCH] Add IPv4 detection and account creation prompt to Omada controller setup --- debian-13/apps/omada-controller/omada-controller.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian-13/apps/omada-controller/omada-controller.sh b/debian-13/apps/omada-controller/omada-controller.sh index cf58214..57e78a5 100644 --- a/debian-13/apps/omada-controller/omada-controller.sh +++ b/debian-13/apps/omada-controller/omada-controller.sh @@ -39,3 +39,6 @@ if [ -f "/etc/iptables/rules.v4" ]; then sed -i '/^-A INPUT -i lo -j ACCEPT.*/a # Omada' /etc/iptables/rules.v4 iptables-restore /etc/iptables/rules.v4 fi + +IPV4=$(ip addr | grep 'inet ' | grep -v '127.0' | head -n1 | awk '{print $2}' | cut -f1 -d /) +whiptail --msgbox "Create an account before reboot.\nhttp://${IPV4}:8088" 0 0