diff --git a/files/www/cgi-bin/admin b/files/www/cgi-bin/admin index b3481be6..07fe5f1f 100755 --- a/files/www/cgi-bin/admin +++ b/files/www/cgi-bin/admin @@ -483,6 +483,15 @@ if fw_install and nixio.fs.stat(tmpdir .. "/firmware") then aredn.info.set_nvram("nodeupgraded", "0") os.execute("reboot >/dev/null 2>&1") else + -- Show a different reload address if we're running on the ramdisk + local hostname = "192.168.1.1" + for line in io.lines("/proc/mounts") + do + if line:match("overlay") or line:match("ext4") then + hostname = node .. ".local.mesh" + break + end + end html.print([[

Firmware will be written in the background.

If your computer is connected to the LAN of this node you may need to acquire
@@ -490,7 +499,7 @@ if fw_install and nixio.fs.stat(tmpdir .. "/firmware") then

The node will reboot twice while the configuration is applied
When the node has finished booting you should ensure your computer has
received a new IP address and reconnect with
- http://]] .. node .. [[.local.mesh:8080/
+ http://]] .. hostname .. [[:8080/
This page will automatically reload once the upgrade has completed