gluon-config-mode: use different document root
This commit is contained in:
		
							parent
							
								
									d204b0e24f
								
							
						
					
					
						commit
						1cf4d41cba
					
				| @ -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 | ||||||
|  | |||||||
							
								
								
									
										5
									
								
								package/gluon-config-mode/files/lib/gluon/config-mode/www/cgi-bin/luci
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										5
									
								
								package/gluon-config-mode/files/lib/gluon/config-mode/www/cgi-bin/luci
									
									
									
									
									
										Executable 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() | ||||||
| @ -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> | ||||||
| @ -0,0 +1 @@ | |||||||
|  | /www/luci-static | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user