Browse Source

htdocs layout

Danja Vasiliev 10 years ago
parent
commit
f367e9b6bb

+ 7 - 1
openwrt/dir505/etc/rc.local

@@ -10,8 +10,14 @@ mountpoint -q $_SG && (
   [ $(stat $_SG -c %U) != 'httpd' ] && chown -R httpd $_SG
   [ $(stat $_SG -c %a) -lt '755' ] && chmod -R u+rwX $_SG
 
+  ## check if index.html is present
+  [ -e $_SG/index.html ] || (
+    cp /www/lib/resources/index.html $_SG
+    chown httpd $_SG/index.html
+    )
+
   ## if /www/tmp does not exist
-  [ ! -d /www/tmp ] && (
+  [ -d /www/tmp ] || (
     mkdir /www/tmp && chown httpd /www/tmp
     )
   )

+ 0 - 0
openwrt/dir505/www/lib/post.sh → openwrt/dir505/www/lib/cgi/post.sh


+ 0 - 0
openwrt/dir505/www/lib/sysinfo.sh → openwrt/dir505/www/lib/cgi/sysinfo.sh


+ 0 - 0
openwrt/dir505/www/lib/index.html → openwrt/dir505/www/lib/resources/index.html