Unverified Commit 96f90a10 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

Redirect

parent 5a828006
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -205,7 +205,11 @@ else
  configureDHCP

  # Display the received IP on port 5000
  /run/server.sh 5000 "The location of DSM is http://${DHCP_IP}:5000" > /dev/null &

  HTML="The location of DSM is http://${DHCP_IP}:5000<script>\
                 setTimeout(function(){ window.location.replace("http://${DHCP_IP}:5000"); }, 2000);</script>"

  /run/server.sh 5000 "${HTML}" > /dev/null &

fi