Add IPv4 detection and account creation prompt to Omada controller setup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user