Skip to content

Commit

Permalink
Porting Linino to OpenWRT 12.09 Attitude Adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Fissore committed Mar 6, 2015
1 parent 80c7283 commit 7e2976f
Show file tree
Hide file tree
Showing 117 changed files with 23,318 additions and 214 deletions.
5,324 changes: 5,324 additions & 0 deletions .config

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
.*.swp
/env
/dl
/.config
/.config.old
/bin
/build_dir
Expand All @@ -12,7 +11,6 @@
/logs
/feeds
/feeds.conf
/files
/package/feeds
/package/openwrt-packages
*.orig
Expand All @@ -21,4 +19,7 @@
.#*
*#
.emacs.desktop*
TAGS*~
TAGS*~
delete_ours.sh
update_feeds.sh
package/arduino/yun-conf/files/etc/arduino/arduino_gpg.*
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# OpenWRT Yún

This is a custom version of OpenWRT, targeted to the Arduino Yún. Some of its core packages, including the kernel and uboot, are derived from Linino.

21 changes: 21 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh -ex
rm -f dl
rm -fr staging_dir build_dir bin broken_packages
make distclean

ln -s $DL_FOLDER dl

./scripts/feeds uninstall -a
rm -rf feeds
./scripts/feeds update -a
./scripts/feeds install -a
./scripts/feeds uninstall erlang freeswitch remotefs libzstream shflags opensips pulseaudio xmlrpc-c rtorrent sox umurmur-polarssl freecwmp-zstream osirisd logtrigger libplist libimobiledevice cmus mxml boost wt
rm -f .config
git checkout .config
make oldconfig

if [ -z "$MAKE_JOBS" ]; then
MAKE_JOBS="2"
fi

nice -n 10 make -j $MAKE_JOBS V=s
8 changes: 8 additions & 0 deletions files/etc/banner
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------


20 changes: 20 additions & 0 deletions files/etc/config/firewall
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
config defaults
option syn_flood 1
option input ACCEPT
option output ACCEPT
option forward REJECT

config zone
option name lan
option network 'lan'
option input ACCEPT
option output ACCEPT
option forward REJECT

config zone
option name wan
option network 'wan'
option input ACCEPT
option output ACCEPT
option forward REJECT

9 changes: 9 additions & 0 deletions files/etc/config/fstab
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
config global automount
option from_fstab 1
option anon_mount 1

config global autoswap
option from_fstab 1
option anon_swap 0


10 changes: 10 additions & 0 deletions files/etc/config/system
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
config system
option hostname Arduino
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
89 changes: 89 additions & 0 deletions files/etc/config/uhttpd
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Server configuration
config uhttpd main

# HTTP listen addresses, multiple allowed
list listen_http 0.0.0.0:80
# list listen_http [::]:80

# HTTPS listen addresses, multiple allowed
list listen_https 0.0.0.0:443
# list listen_https [::]:443

# Server document root
option home /www

# Reject requests from RFC1918 IP addresses
# directed to the servers public IP(s).
# This is a DNS rebinding countermeasure.
option rfc1918_filter 0

# Maximum number of concurrent requests.
# If this number is exceeded, further requests are
# queued until the number of running requests drops
# below the limit again.
option max_requests 2

# Certificate and private key for HTTPS.
# If no listen_https addresses are given,
# the key options are ignored.
option cert /etc/uhttpd.crt
option key /etc/uhttpd.key

# CGI url prefix, will be searched in docroot.
# Default is /cgi-bin
option cgi_prefix /cgi-bin

# List of extension->interpreter mappings.
# Files with an associated interpreter can
# be called outside of the CGI prefix and do
# not need to be executable.
# list interpreter ".php=/usr/bin/php-cgi"
# list interpreter ".cgi=/usr/bin/perl"

# Lua url prefix and handler script.
# Lua support is disabled if no prefix given.
# option lua_prefix /luci
# option lua_handler /usr/lib/lua/luci/sgi/uhttpd.lua

# CGI/Lua timeout, if the called script does not
# write data within the given amount of seconds,
# the server will terminate the request with
# 504 Gateway Timeout response.
option script_timeout 60

# Network timeout, if the current connection is
# blocked for the specified amount of seconds,
# the server will terminate the associated
# request process.
option network_timeout 30

# TCP Keep-Alive, send periodic keep-alive probes
# over established connections to detect dead peers.
# The value is given in seconds to specify the
# interval between subsequent probes.
# Setting this to 0 will disable TCP keep-alive.
option tcp_keepalive 1

# Basic auth realm, defaults to local hostname
# option realm OpenWrt

# Configuration file in busybox httpd format
# option config /etc/httpd.conf


# Certificate defaults for px5g key generator
config cert px5g

# Validity time
option days 36500

# RSA key size
option bits 1024

# Location
option country IT
option state Turin
option location Turin

# Common name
option commonname 'Arduino LLC'
19 changes: 19 additions & 0 deletions files/etc/config/wireless
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
config wifi-device radio0
option type mac80211
option channel 11
option hwmode 11ng
option path 'platform/ar933x_wmac'
option htmode HT20
list ht_capab SHORT-GI-20
list ht_capab SHORT-GI-40
list ht_capab RX-STBC1
list ht_capab DSSS_CCK-40
# REMOVE THIS LINE TO ENABLE WIFI:
option disabled 0

config wifi-iface
option device radio0
option network lan
option mode ap
option ssid Arduino
option encryption none
2 changes: 2 additions & 0 deletions files/etc/httpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
A:/arduino:/cgi-bin/luci/arduino%s
A:/data:/cgi-bin/luci/data%s
7 changes: 7 additions & 0 deletions files/etc/rc.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.

wifi-live-or-reset
boot-complete-notify

exit 0
6 changes: 6 additions & 0 deletions files/etc/shadow
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
root:$1$Ar.U/LfY$T.OPt41BYbXFY0TbKMyQA0:15828:0:99999:7:::
daemon:*:0:0:99999:7:::
ftp:*:0:0:99999:7:::
network:*:0:0:99999:7:::
nobody:*:0:0:99999:7:::

Loading

0 comments on commit 7e2976f

Please sign in to comment.