NIU: More pages
[project/luci.git] / modules / niu / luasrc / view / niu / system / reboot.htm
diff --git a/modules/niu/luasrc/view/niu/system/reboot.htm b/modules/niu/luasrc/view/niu/system/reboot.htm
new file mode 100644 (file)
index 0000000..4b356d6
--- /dev/null
@@ -0,0 +1,14 @@
+Rebooting. Please wait...
+
+<script type="text/javascript">
+window.setInterval(function() {
+       var xmlHttp = new XMLHttpRequest();
+    xmlHttp.open('GET', '/', true);
+    xmlHttp.onreadystatechange = function () {
+        if (xmlHttp.readyState == 4 && req.status >= 200 && req.status < 400) {
+               window.location = "/";
+        }
+    };
+    xmlHttp.send(null);
+}, 10000);
+</script>
\ No newline at end of file