gluon-config-mode: use different document root

This commit is contained in:
Matthias Schiffer 2014-01-13 20:16:43 +01:00
parent d204b0e24f
commit 1cf4d41cba
4 changed files with 19 additions and 2 deletions

View File

@ -33,9 +33,10 @@ start() {
ip link set up dev $config_mode_iface ip link set up dev $config_mode_iface
/usr/sbin/telnetd -l /lib/gluon/config-mode/ash-login /usr/sbin/telnetd -l /lib/gluon/config-mode/ash-login
/etc/init.d/dropbear start /etc/init.d/dropbear start
/etc/init.d/uhttpd start
/usr/sbin/uhttpd -h /lib/gluon/config-mode/www -x /cgi-bin -A 1 -R -p 0.0.0.0:80
/etc/init.d/led start /etc/init.d/led start
# correctly finish firstboot # correctly finish firstboot

View File

@ -0,0 +1,5 @@
#!/usr/bin/lua
require "luci.cacheloader"
require "luci.sgi.cgi"
luci.dispatcher.indexcache = "/tmp/luci-indexcache"
luci.sgi.cgi.run()

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="refresh" content="0; URL=/cgi-bin/luci" />
</head>
<body style="background-color: black">
<a style="color: white; text-decoration: none" href="/cgi-bin/luci">LuCI - Lua Configuration Interface</a>
</body>
</html>

View File

@ -0,0 +1 @@
/www/luci-static