Skip to content

Commit

Permalink
Initial batch of files and configs
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvadm committed Jun 23, 2014
1 parent a7270cd commit da10f2e
Show file tree
Hide file tree
Showing 7 changed files with 92 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/
```

16 changes: 16 additions & 0 deletions files/etc/banner
Original file line number Diff line number Diff line change
@@ -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
-----------------------------------------------------
5 changes: 5 additions & 0 deletions files/etc/config/dropbear
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
config dropbear
option PasswordAuth 'on'
option RootPasswordAuth 'on'
option Port '22'
option BannerFile '/etc/banner'
1 change: 1 addition & 0 deletions files/etc/dnsmasq.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
address=/#/10.20.30.40
18 changes: 18 additions & 0 deletions files/etc/network
Original file line number Diff line number Diff line change
@@ -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'

31 changes: 31 additions & 0 deletions files/etc/system
Original file line number Diff line number Diff line change
@@ -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'

18 changes: 18 additions & 0 deletions files/etc/wireless
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit da10f2e

Please sign in to comment.