Răsfoiți Sursa

uci defaults update

Danja Vasiliev 10 ani în urmă
părinte
comite
baa921114b

+ 3 - 3
openwrt/dir505/etc/banner

@@ -3,11 +3,11 @@
  |_ -|| | || . || -_||  _|| . || || | || -_|
  |___||___||  _||___||_|  |_  ||_||___||___|
            |_|   personal |___| server
- 
+ http://superglue.it 
  -----------------------------------------------------
- (based on OpenWRT trunk r40774)
+ based on OpenWRT r40774 (trunk)
  -----------------------------------------------------
- provides now:            will provide soon:
+ provides now:            will provide:
    * HTTP (lighthttp)       * SMTP      
    * Bash CGI               * IMAP
                             * Lua CGI

+ 0 - 29
openwrt/dir505/etc/config/6relayd

@@ -1,29 +0,0 @@
-config server default
-	option master	wan6
-	list network	lan
-	option rd	server
-	option dhcpv6	server
-	option fallback_relay	'rd dhcpv6 ndp'
-	option management_level 1
-	option compat_ula 1
-
-
-# Example #1: Create a relay for several networks in proxy mode
-# This can be used to proxy Router Discovery, DHCPv6 and NDP.
-
-#config server examplerelay
-#	option master	'wan'
-#	option network	'lan'
-#	option rd	'relay'
-#	option dhcpv6	'relay'
-#	option ndp	'relay'
-
-
-# Example #2: Provide Router Discovery and stateless DHCPv6 in server mode
-# This can be used as a small radvd and stateless DHCPv6-server replacement.
-
-#config server exampleserver
-#	option network	'lan'
-#	option rd	'server'
-#	option dhcpv6	'server'
-

+ 38 - 29
openwrt/dir505/etc/config/dhcp

@@ -1,32 +1,41 @@
+
 config dnsmasq
-	option domainneeded	1
-	option boguspriv	1
-	option filterwin2k	0  # enable for dial on demand
-	option localise_queries	1
-	option rebind_protection 1  # disable if upstream must serve RFC1918 addresses
-	option rebind_localhost 1  # enable for RBL checking and similar services
-	#list rebind_domain example.lan  # whitelist RFC1918 responses for domains
-	option local	'/lan/'
-	option domain	'lan'
-	option expandhosts	1
-	option nonegcache	0
-	option authoritative	1
-	option readethers	1
-	option leasefile	'/tmp/dhcp.leases'
-	option resolvfile	'/tmp/resolv.conf.auto'
-	#list server		'/mycompany.local/1.2.3.4'
-	#option nonwildcard	1
-	#list interface		br-lan
-	#list notinterface	lo
-	#list bogusnxdomain     '64.94.110.11'
+	option domainneeded '1'
+	option boguspriv '1'
+	option filterwin2k '0'
+	option localise_queries '1'
+	option rebind_protection '1'
+	option rebind_localhost '1'
+	option local '/lan/'
+	option domain 'lan'
+	option expandhosts '1'
+	option nonegcache '0'
+	option authoritative '1'
+	option readethers '1'
+	option leasefile '/tmp/dhcp.leases'
+	option resolvfile '/tmp/resolv.conf.auto'
+
+config dhcp 'lan'
+	option interface 'lan'
+	option start '100'
+	option limit '150'
+	option leasetime '12h'
+	option dhcpv6 'hybrid'
+	option ra 'hybrid'
+	option ndp 'hybrid'
+
+config dhcp 'wan'
+	option interface 'wan'
+	option ignore '1'
+
+config odhcpd 'odhcpd'
+	option maindhcp '0'
+	option leasefile '/tmp/hosts/odhcpd'
+	option leasetrigger '/usr/sbin/odhcpd-update'
 
-config dhcp lan
-	option interface	lan
-	option start 	100
-	option limit	150
-	option leasetime	12h
-	option ignore 	1
+config dhcp 'wan6'
+	option dhcpv6 'hybrid'
+	option ra 'hybrid'
+	option ndp 'hybrid'
+	option master '1'
 
-config dhcp wan
-	option interface	wan
-	option ignore	1

+ 1 - 1
openwrt/dir505/etc/config/firewall

@@ -4,7 +4,7 @@ config defaults
 	option output		ACCEPT
 	option forward		REJECT
 # Uncomment this line to disable ipv6 rules
-#	option disable_ipv6	1
+	option disable_ipv6	1
 
 config zone
 	option name		lan

+ 6 - 0
openwrt/dir505/etc/config/fstab

@@ -10,3 +10,9 @@ config 'global' 'automount'
   option  'from_fstab'  '1'
   option  'anon_mount'  '1'
 
+config 'mount'
+  option 'label'  'superglue'
+  option 'enabled'    '1'
+  option 'enabled_fsck'   '0'
+  option 'options'  'remount,rw,nosuid,noatime'
+

+ 4 - 23
openwrt/dir505/etc/config/network

@@ -6,33 +6,14 @@ config interface 'loopback'
 	option netmask '255.0.0.0'
 
 config globals 'globals'
-	option ula_prefix 'fdbd:0022:366a::/48'
+	option ula_prefix 'fd2c:90fd:3f5a::/48'
 
 config interface 'lan'
-	option ifname 'eth0'
+	option ifname 'eth1'
+	option force_link '1'
 	option type 'bridge'
 	option proto 'static'
-	option ipaddr '192.168.1.56'
+	option ipaddr '192.168.1.1'
 	option netmask '255.255.255.0'
-	option gateway '192.168.1.1'
-	option dns '192.168.1.1'
 	option ip6assign '60'
 
-config interface 'wan'
-	option ifname 'eth1'
-	option proto 'dhcp'
-
-config interface 'wan6'
-	option ifname '@wan'
-	option proto 'dhcpv6'
-
-config switch
-	option name 'switch0'
-	option reset '1'
-	option enable_vlan '1'
-
-config switch_vlan
-	option device 'switch0'
-	option vlan '1'
-	option ports '0 1 2 3 4 5'
-

+ 0 - 23
openwrt/dir505/etc/config/ntpclient

@@ -1,23 +0,0 @@
-config ntpserver
-	option hostname '0.openwrt.pool.ntp.org'
-	option port     '123'
-
-config ntpserver
-	option hostname '1.openwrt.pool.ntp.org'
-	option port     '123'
-
-config ntpserver
-	option hostname '2.openwrt.pool.ntp.org'
-	option port     '123'
-
-config ntpserver
-	option hostname '3.openwrt.pool.ntp.org'
-	option port     '123'
-
-config ntpdrift
-	option freq     '0'
-
-config ntpclient
-	option interval	600
-	#option count	10
-	#option interface wan

+ 8 - 6
openwrt/dir505/etc/config/system

@@ -1,7 +1,7 @@
 
 config system
-	option hostname 'sg1'
-	option timezone 'Europe/Berlin'
+	option hostname 'sg'
+	option timezone 'UTC'
 
 config timeserver 'ntp'
 	list server '0.openwrt.pool.ntp.org'
@@ -10,8 +10,10 @@ config timeserver 'ntp'
 	list server '3.openwrt.pool.ntp.org'
 	option enable_server '0'
 
-config led 'led_wlan'
-	option name 'WLAN'
-	option sysfs 'wrt160nl:blue:wlan'
-	option trigger 'phy0tpt'
+config led 'led_lan'
+	option name 'LAN'
+	option sysfs 'd-link:green:power'
+	option trigger 'netdev'
+	option dev 'eth1'
+	option mode 'link tx rx'
 

+ 6 - 28
openwrt/dir505/etc/config/wireless

@@ -1,36 +1,14 @@
 config wifi-device  radio0
 	option type     mac80211
-	option channel  1
-	option country	DE
-	option hwmode	11ng
-	option macaddr	00:23:69:f9:62:17
+	option channel  auto
+	option hwmode	11g
+	option path	'platform/ar933x_wmac'
 	option htmode	HT20
-	list ht_capab	SHORT-GI-40
-	list ht_capab	DSSSi_CCK-40
-	list ht_capab	HT40+
-	list ht_capab	HT40-
-	# option noscan	1
-	# REMOVE THIS LINE TO ENABLE WIFI:
-	option disabled 1
 
 config wifi-iface
 	option device   radio0
 	option network  lan
-	option ifname 	wlan0
-#	option mode     monitor
-	option mode	ap
-	option ssid     superglue
-	option encryption psk2
-	option key	5upr3w3b
-#	option encryption none
+	option mode     ap
+	option ssid     SuperGlue_server
+	option encryption none
 
-#config wifi-iface
-#	option device   radio0
-#	option network  lan
-#	option ifname   wlan1
-#	option mode     ap
-#	option ssid     PublicWireless
-#	option encryption psk2
-#	option key	asda_666
-#	option encryption none
-                                       

+ 10 - 0
openwrt/dir505/etc/group

@@ -0,0 +1,10 @@
+root:x:0:
+daemon:x:1:
+adm:x:4:
+mail:x:8:
+audio:x:29:
+www-data:x:33:
+ftp:x:55:
+users:x:100:
+network:x:101:
+nogroup:x:65534:

+ 1 - 1
openwrt/dir505/etc/passwd

@@ -3,4 +3,4 @@ daemon:*:1:1:daemon:/var:/bin/false
 ftp:*:55:55:ftp:/home/ftp:/bin/false
 network:*:101:101:network:/var:/bin/false
 nobody:*:65534:65534:nobody:/var:/bin/false
-httpd:x:999:999::/www:/bin/false
+httpd:*:999:999:www-data:/www:/bin/false

+ 1 - 1
openwrt/dir505/etc/shadow

@@ -1,4 +1,4 @@
-root::15999:0:99999:7:::
+root::0:0:99999:7:::
 daemon:*:0:0:99999:7:::
 ftp:*:0:0:99999:7:::
 network:*:0:0:99999:7:::

+ 7 - 0
openwrt/dir505/www/htdocs/index.html

@@ -0,0 +1,7 @@
+<html>
+<head><title>ERROR: storage failure | SuperGlue server not found</title></head>
+<body style='background-color:#777; color:#eee'>
+<h1>Storage failure</h1>
+<h2>Please make sure that USB storage device is attached to the unit</h2>
+</body>
+</html>