From da10f2e864944156c7a13fe40ce18616d6fb6736 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Mon, 23 Jun 2014 22:45:46 +0300 Subject: [PATCH] Initial batch of files and configs --- README.md | 5 +++-- files/etc/banner | 16 ++++++++++++++++ files/etc/config/dropbear | 5 +++++ files/etc/dnsmasq.conf | 1 + files/etc/network | 18 ++++++++++++++++++ files/etc/system | 31 +++++++++++++++++++++++++++++++ files/etc/wireless | 18 ++++++++++++++++++ 7 files changed, 92 insertions(+), 2 deletions(-) create mode 100644 files/etc/banner create mode 100644 files/etc/config/dropbear create mode 100644 files/etc/dnsmasq.conf create mode 100644 files/etc/network create mode 100644 files/etc/system create mode 100644 files/etc/wireless diff --git a/README.md b/README.md index db17f2d..a61b362 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,12 @@ ## Image Generate +Linux is required for image generation (no, OS X won't jive). These steps assume a TP-Link TL-MR3040 device. Change the `PROFILE` variable if you are using any other device (see [this link](http://pastebin.com/WbudpBDJ) for more `ar71xx` options.) + ```bash $ cd occupy-wifi $ wget http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-i486.tar.bz2 $ tar -xvjf OpenWrt-ImageBuilder-ar71xx_generic-for-linux-i486.tar.bz2 $ cd OpenWrt-ImageBuilder-ar71xx_generic-for-linux-i486 -$ make image PROFILE=TLMR3040 # Assuming TP-Link MR3040, or use any other profile you like +$ make image PROFILE=TLMR3040 PACKAGES="nodogsplash" FILES=files/ ``` - diff --git a/files/etc/banner b/files/etc/banner new file mode 100644 index 0000000..29cbc16 --- /dev/null +++ b/files/etc/banner @@ -0,0 +1,16 @@ + _______ ________ __ + | |.-----.-----.-----.| | | |.----.| |_ + | - || _ | -__| || | | || _|| _| + |_______|| __|_____|__|__||________||__| |____| + |__| W I R E L E S S F R E E D O M + O C C U P Y W I F I + http://occupywifi.org/ + https://github.com/israelipirates/occupy-wifi + ----------------------------------------------------- + BARRIER BREAKER (Bleeding Edge, r40028) + ----------------------------------------------------- + * 1/2 oz Galliano Pour all ingredients into + * 4 oz cold Coffee an irish coffee mug filled + * 1 1/2 oz Dark Rum with crushed ice. Stir. + * 2 tsp. Creme de Cacao + ----------------------------------------------------- diff --git a/files/etc/config/dropbear b/files/etc/config/dropbear new file mode 100644 index 0000000..c77294e --- /dev/null +++ b/files/etc/config/dropbear @@ -0,0 +1,5 @@ +config dropbear + option PasswordAuth 'on' + option RootPasswordAuth 'on' + option Port '22' + option BannerFile '/etc/banner' diff --git a/files/etc/dnsmasq.conf b/files/etc/dnsmasq.conf new file mode 100644 index 0000000..62c1c27 --- /dev/null +++ b/files/etc/dnsmasq.conf @@ -0,0 +1 @@ +address=/#/10.20.30.40 diff --git a/files/etc/network b/files/etc/network new file mode 100644 index 0000000..54578ac --- /dev/null +++ b/files/etc/network @@ -0,0 +1,18 @@ + +config interface 'loopback' + option ifname 'lo' + option proto 'static' + option ipaddr '127.0.0.1' + option netmask '255.0.0.0' + +config globals 'globals' + option ula_prefix 'fdf0:484b:dbf9::/48' + +config interface 'lan' + option ifname 'eth0' + option type 'bridge' + option proto 'static' + option ipaddr '10.222.33.1' + option netmask '255.255.255.0' + option ip6assign '60' + diff --git a/files/etc/system b/files/etc/system new file mode 100644 index 0000000..005d0fa --- /dev/null +++ b/files/etc/system @@ -0,0 +1,31 @@ + +config system + option hostname 'OccupyWifi' + option timezone 'UTC' + +config timeserver 'ntp' + list server '0.openwrt.pool.ntp.org' + list server '1.openwrt.pool.ntp.org' + list server '2.openwrt.pool.ntp.org' + list server '3.openwrt.pool.ntp.org' + option enable_server '0' + +config led 'led_usb' + option name 'USB' + option sysfs 'tp-link:green:3g' + option trigger 'usbdev' + option dev '1-1' + option interval '50' + +config led 'led_wlan' + option name 'WLAN' + option sysfs 'tp-link:green:wlan' + option trigger 'phy0tpt' + +config led 'led_lan' + option name 'LAN' + option sysfs 'tp-link:green:lan' + option trigger 'netdev' + option dev 'eth0' + option mode 'link tx rx' + diff --git a/files/etc/wireless b/files/etc/wireless new file mode 100644 index 0000000..407420d --- /dev/null +++ b/files/etc/wireless @@ -0,0 +1,18 @@ +config wifi-device radio0 + option type mac80211 + option channel 11 + option hwmode 11ng + option path 'platform/ar933x_wmac' + list ht_capab SHORT-GI-20 + list ht_capab SHORT-GI-40 + list ht_capab RX-STBC1 + list ht_capab DSSS_CCK-40 + option htmode HT20 + option disabled 0 + +config wifi-iface + option device radio0 + option network lan + option mode ap + option ssid "Occupy WiFi" + option encryption none