diff --git a/files/linksys/etc/config/system b/files/linksys/etc/config/system new file mode 100644 index 0000000..fd6c2b2 --- /dev/null +++ b/files/linksys/etc/config/system @@ -0,0 +1,44 @@ +config system + option hostname '' + option zonename 'Europe/Sofia' + option timezone 'EET-2EEST,M3.5.0/3,M10.5.0/4' + option log_ip '10.20.0.1' + option log_remote '1' + option ttylogin '0' + option log_size '64' + option urandom_seed '0' + +config timeserver 'ntp' + option enabled '1' + option enable_server '0' + list server '0.lede.pool.ntp.org' + list server '1.lede.pool.ntp.org' + list server '2.lede.pool.ntp.org' + list server '3.lede.pool.ntp.org' + +config led 'led_wan' + option name 'WAN' + option sysfs 'pca963x:shelby:white:wan' + option trigger 'netdev' + option mode 'link tx rx' + option dev 'eth0' + +config led 'led_usb2' + option name 'USB2' + option sysfs 'pca963x:shelby:white:usb2' + option trigger 'usbdev' + option interval '50' + option dev '1-1' + +config led 'led_usb3' + option name 'USB3' + option sysfs 'pca963x:shelby:white:usb3_1' + option trigger 'usbdev' + option interval '50' + option dev '2-1' + +config led 'led_power' + option name 'POWER' + option sysfs 'shelby:white:power' + option trigger 'heartbeat' + diff --git a/files/linksys/etc/config/wireless b/files/linksys/etc/config/wireless new file mode 100644 index 0000000..88c98df --- /dev/null +++ b/files/linksys/etc/config/wireless @@ -0,0 +1,61 @@ +config wifi-device radio0 + option type mac80211 + option hwmode 11a + option path 'soc/soc:pcie-controller/pci0000:00/0000:00:01.0/0000:01:00.0' +# option channel +# option txpower '30' + option htmode VHT80 + option distance '20' + list basic_rate '54000' + option require_mode 'n' + option log_level '-1' + option country 'BG' + option country_ie '1' + option doth '1' + +config wifi-iface + option device radio0 + option network 'wireless' + option mode 'ap' + option ssid 'OpenFest' + option encryption 'none' +# option macaddr '' + option isolate '1' + option iapp_interface 'management' + option wnm_sleep_mode 1 + option proxy_arp 1 + +config wifi-device radio1 + option type mac80211 + option hwmode 11g + option path 'soc/soc:pcie-controller/pci0000:00/0000:00:02.0/0000:02:00.0' +# option channel +# option txpower '20' + option htmode 'HT20' + option distance '20' + list basic_rate '54000' + option require_mode 'g' + option beacon_int 250 + option log_level '-1' + option country 'BG' + option country_ie '1' + +config wifi-iface + option device radio1 + option network 'wireless' + option mode 'ap' + option ssid 'OpenFest' + option encryption 'none' +# option macaddr '' + option isolate '1' + option iapp_interface 'management' + option wnm_sleep_mode 1 + option proxy_arp 1 + + + + + + + + diff --git a/files/linksys/etc/rc.local b/files/linksys/etc/rc.local new file mode 100644 index 0000000..ac306d2 --- /dev/null +++ b/files/linksys/etc/rc.local @@ -0,0 +1,8 @@ +# Put your custom commands here that should be executed once +# the system init finished. By default this file does nothing. + +/usr/sbin/ebtables -A FORWARD -i wlan+ -o wlan+ -j DROP +/usr/sbin/ebtables -A FORWARD -i wlan+ -s 00:1e:0b:d9:bb:6a -j DROP +/usr/sbin/ebtables -A FORWARD -i eth+ -o wlan+ -s ! 00:1e:0b:d9:bb:6a -j DROP + +exit 0