summaryrefslogtreecommitdiff
path: root/obsolete-buildroot/sources/openwrt/root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'obsolete-buildroot/sources/openwrt/root/etc')
-rw-r--r--obsolete-buildroot/sources/openwrt/root/etc/banner6
-rw-r--r--obsolete-buildroot/sources/openwrt/root/etc/dnsmasq.conf24
-rwxr-xr-xobsolete-buildroot/sources/openwrt/root/etc/functions.sh33
-rwxr-xr-xobsolete-buildroot/sources/openwrt/root/etc/init.d/S10boot25
-rwxr-xr-xobsolete-buildroot/sources/openwrt/root/etc/init.d/S40network15
-rwxr-xr-xobsolete-buildroot/sources/openwrt/root/etc/init.d/S45firewall23
-rwxr-xr-xobsolete-buildroot/sources/openwrt/root/etc/init.d/S50dnsmasq2
-rwxr-xr-xobsolete-buildroot/sources/openwrt/root/etc/init.d/S50httpd2
-rwxr-xr-xobsolete-buildroot/sources/openwrt/root/etc/init.d/S50telnet2
-rwxr-xr-xobsolete-buildroot/sources/openwrt/root/etc/init.d/S99done7
-rwxr-xr-xobsolete-buildroot/sources/openwrt/root/etc/init.d/rcS25
-rw-r--r--obsolete-buildroot/sources/openwrt/root/etc/inittab3
-rw-r--r--obsolete-buildroot/sources/openwrt/root/etc/ipkg.conf3
-rw-r--r--obsolete-buildroot/sources/openwrt/root/etc/nvram.overrides62
-rwxr-xr-xobsolete-buildroot/sources/openwrt/root/etc/preinit20
-rw-r--r--obsolete-buildroot/sources/openwrt/root/etc/profile9
-rw-r--r--obsolete-buildroot/sources/openwrt/root/etc/sysctl.conf7
17 files changed, 0 insertions, 268 deletions
diff --git a/obsolete-buildroot/sources/openwrt/root/etc/banner b/obsolete-buildroot/sources/openwrt/root/etc/banner
deleted file mode 100644
index 2b2b2c015b..0000000000
--- a/obsolete-buildroot/sources/openwrt/root/etc/banner
+++ /dev/null
@@ -1,6 +0,0 @@
- _______ ________ __
- | |.-----.-----.-----.| | | |.----.| |_
- | - || _ | -__| || | | || _|| _|
- |_______|| __|_____|__|__||________||__| |____|
- |__| W I R E L E S S F R E E D O M
-
diff --git a/obsolete-buildroot/sources/openwrt/root/etc/dnsmasq.conf b/obsolete-buildroot/sources/openwrt/root/etc/dnsmasq.conf
deleted file mode 100644
index 293edc600a..0000000000
--- a/obsolete-buildroot/sources/openwrt/root/etc/dnsmasq.conf
+++ /dev/null
@@ -1,24 +0,0 @@
-# filter what we send upstream
-domain-needed
-bogus-priv
-filterwin2k
-
-# allow /etc/hosts and dhcp lookups via *.lan
-local=/lan/
-domain=lan
-
-# no dhcp / dns queries from the wan
-except-interface=vlan1
-
-# enable dhcp (start,end,netmask,leasetime)
-dhcp-authoritative
-dhcp-range=192.168.1.100,192.168.1.250,255.255.255.0,12h
-dhcp-leasefile=/tmp/dhcp.leases
-
-# use /etc/ethers for static hosts; same format as --dhcp-host
-# <hwaddr> [<hostname>] <ipaddr>
-read-ethers
-
-# other useful options:
-# default route(s): dhcp-option=3,192.168.1.1,192.168.1.2
-# dns server(s): dhcp-option=6,192.168.1.1,192.168.1.2
diff --git a/obsolete-buildroot/sources/openwrt/root/etc/functions.sh b/obsolete-buildroot/sources/openwrt/root/etc/functions.sh
deleted file mode 100755
index 75500a2aab..0000000000
--- a/obsolete-buildroot/sources/openwrt/root/etc/functions.sh
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/ash
-
-alias debug=${DEBUG:-:}
-
-# allow env to override nvram
-nvram () {
- case $1 in
- get) eval "echo \${NVRAM_$2:-\$(command nvram get $2)}";;
- *) command nvram $*;;
- esac
-}
-. /etc/nvram.overrides
-
-# valid interface?
-if_valid () {
- ifconfig "$1" >&- 2>&- ||
- [ "${1%%[0-9]}" = "br" ] ||
- {
- [ "${1%%[0-9]}" = "vlan" ] && (
- i=${1#vlan}
- hwname=$(nvram get vlan${i}hwname)
- hwaddr=$(nvram get ${hwname}macaddr)
- [ -z "$hwaddr" ] && return 1
-
- vif=$(ifconfig -a | awk '/^eth.*'$hwaddr'/ {print $1; exit}' IGNORECASE=1)
- debug "# vlan$i => $vif"
-
- $DEBUG ifconfig $vif up
- $DEBUG vconfig add $vif $i 2>&-
- )
- } ||
- { echo -e "# $1 ignored: can't find/create"; false; }
-}
diff --git a/obsolete-buildroot/sources/openwrt/root/etc/init.d/S10boot b/obsolete-buildroot/sources/openwrt/root/etc/init.d/S10boot
deleted file mode 100755
index 81379bed4b..0000000000
--- a/obsolete-buildroot/sources/openwrt/root/etc/init.d/S10boot
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-klogd
-syslogd -C 16
-sysctl -p
-echo "S" > /proc/jffs2_bbc
-
-mkdir -p /var/run
-
-[ "$(nvram get il0macaddr)" = "00:90:4c:5f:00:2a" ] && {
- # if default wifi mac, set two higher than the lan mac
- nvram set il0macaddr=$(nvram get et0macaddr|
- awk '{OFS=FS=":";for(x=7,y=2;--x;){$x=sprintf("%02x",(y+="0x"$x)%256);y/=256}print}')
-}
-
-insmod et
-insmod wl
-
-ifconfig lo 127.0.0.1 up
-ifconfig eth0 promisc
-
-HOSTNAME=$(nvram get wan_hostname)
-HOSTNAME=${HOSTNAME%%.*}
-echo ${HOSTNAME:=OpenWrt} > /proc/sys/kernel/hostname
-
-vconfig set_name_type VLAN_PLUS_VID_NO_PAD
diff --git a/obsolete-buildroot/sources/openwrt/root/etc/init.d/S40network b/obsolete-buildroot/sources/openwrt/root/etc/init.d/S40network
deleted file mode 100755
index a8144a8375..0000000000
--- a/obsolete-buildroot/sources/openwrt/root/etc/init.d/S40network
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-. /etc/functions.sh
-case "$1" in
- start|restart)
- ifup lan
- ifup wan
- ifup wifi
- wifi up
-
- for route in $(nvram get static_route); do {
- eval "set $(echo $route | sed 's/:/ /g')"
- $DEBUG route add -net $1 netmask $2 gw $3 metric $4 dev $5
- } done
- ;;
-esac
diff --git a/obsolete-buildroot/sources/openwrt/root/etc/init.d/S45firewall b/obsolete-buildroot/sources/openwrt/root/etc/init.d/S45firewall
deleted file mode 100755
index 49b9df0004..0000000000
--- a/obsolete-buildroot/sources/openwrt/root/etc/init.d/S45firewall
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-. /etc/functions.sh
-
-WAN=$(nvram get wan_ifname)
-
-IPT=/usr/sbin/iptables
-
-for T in filter nat mangle ; do
- $IPT -t $T -F
- $IPT -t $T -X
-done
-
-$IPT -t filter -A INPUT -m state --state INVALID -j DROP
-$IPT -t filter -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-$IPT -t filter -A INPUT -p icmp -j ACCEPT
-$IPT -t filter -A INPUT -i $WAN -p tcp -j REJECT --reject-with tcp-reset
-$IPT -t filter -A INPUT -i $WAN -j REJECT --reject-with icmp-port-unreachable
-$IPT -t filter -A FORWARD -m state --state INVALID -j DROP
-$IPT -t filter -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
-$IPT -t filter -A FORWARD -i $WAN -m state --state NEW,INVALID -j DROP
-$IPT -t filter -A FORWARD -o $WAN -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
-
-$IPT -t nat -A POSTROUTING -o $WAN -j MASQUERADE
diff --git a/obsolete-buildroot/sources/openwrt/root/etc/init.d/S50dnsmasq b/obsolete-buildroot/sources/openwrt/root/etc/init.d/S50dnsmasq
deleted file mode 100755
index 995c1b6e7a..0000000000
--- a/obsolete-buildroot/sources/openwrt/root/etc/init.d/S50dnsmasq
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-/usr/sbin/dnsmasq
diff --git a/obsolete-buildroot/sources/openwrt/root/etc/init.d/S50httpd b/obsolete-buildroot/sources/openwrt/root/etc/init.d/S50httpd
deleted file mode 100755
index fd66f8032f..0000000000
--- a/obsolete-buildroot/sources/openwrt/root/etc/init.d/S50httpd
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-/usr/sbin/httpd -p 80 -h /www -r WRT54G Router
diff --git a/obsolete-buildroot/sources/openwrt/root/etc/init.d/S50telnet b/obsolete-buildroot/sources/openwrt/root/etc/init.d/S50telnet
deleted file mode 100755
index 29af5040a3..0000000000
--- a/obsolete-buildroot/sources/openwrt/root/etc/init.d/S50telnet
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-/usr/sbin/telnetd -l /bin/login
diff --git a/obsolete-buildroot/sources/openwrt/root/etc/init.d/S99done b/obsolete-buildroot/sources/openwrt/root/etc/init.d/S99done
deleted file mode 100755
index 8811e99bff..0000000000
--- a/obsolete-buildroot/sources/openwrt/root/etc/init.d/S99done
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-# automagically run firstboot
-[ -z "$FAILSAFE" ] && {
- { mount | grep jffs2 1>&-; } || firstboot
-}
-# set leds to normal state
-echo "0x00" > /proc/sys/diag
diff --git a/obsolete-buildroot/sources/openwrt/root/etc/init.d/rcS b/obsolete-buildroot/sources/openwrt/root/etc/init.d/rcS
deleted file mode 100755
index 9510e941a5..0000000000
--- a/obsolete-buildroot/sources/openwrt/root/etc/init.d/rcS
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-
-# Start all init scripts in /etc/init.d
-# executing them in numerical order.
-#
-for i in /etc/init.d/S??* ;do
-
- # Ignore dangling symlinks (if any).
- [ ! -f "$i" ] && continue
-
- case "$i" in
- *.sh)
- # Source shell script for speed.
- (
- trap - INT QUIT TSTP
- set start
- . $i
- )
- ;;
- *)
- # No sh extension, so fork subprocess.
- $i start
- ;;
- esac
-done
diff --git a/obsolete-buildroot/sources/openwrt/root/etc/inittab b/obsolete-buildroot/sources/openwrt/root/etc/inittab
deleted file mode 100644
index 3b0c14e416..0000000000
--- a/obsolete-buildroot/sources/openwrt/root/etc/inittab
+++ /dev/null
@@ -1,3 +0,0 @@
-::sysinit:/etc/init.d/rcS
-::shutdown:/sbin/halt
-tts/0::askfirst:/bin/login
diff --git a/obsolete-buildroot/sources/openwrt/root/etc/ipkg.conf b/obsolete-buildroot/sources/openwrt/root/etc/ipkg.conf
deleted file mode 100644
index 31a5fdfe1b..0000000000
--- a/obsolete-buildroot/sources/openwrt/root/etc/ipkg.conf
+++ /dev/null
@@ -1,3 +0,0 @@
-src openwrt http://openwrt.org/ipkg
-dest root /
-dest ram /tmp
diff --git a/obsolete-buildroot/sources/openwrt/root/etc/nvram.overrides b/obsolete-buildroot/sources/openwrt/root/etc/nvram.overrides
deleted file mode 100644
index acbba30a41..0000000000
--- a/obsolete-buildroot/sources/openwrt/root/etc/nvram.overrides
+++ /dev/null
@@ -1,62 +0,0 @@
-# NVRAM overrides
-#
-# This file handles the NVRAM quirks of various hardware.
-# THIS FILE IS NOT A REPLACEMENT FOR NVRAM
-
-# linksys bug; remove when not using static configuration for lan
-NVRAM_lan_proto="static"
-
-# hacks for wrt54g 1.x hardware
-[ "$(nvram get boardnum)" = "42" ] && \
-[ "$(nvram get boardtype)" = "bcm94710dev" ] && {
-
- # remap eth0 => vlan2, eth1 => vlan1
- # for all *_ifname(s)
-
- debug "### wrt54g 1.x hack ###"
- NVRAM_vlan1hwname="et0"
- NVRAM_vlan2hwname="et0"
- FAILSAFE_ifnames="vlan1 vlan2 eth2"
-
- remap () {
- eval NVRAM_$1=\"$(nvram get $1 | awk 'gsub("eth0","vlan2") gsub("eth1","vlan1")')\"
- }
-
- for type in lan wifi wan pppoe
- do
- remap ${type}_ifname
- remap ${type}_ifnames
- done
-}
-
-# hacks for wap54g hardware
-[ "$(nvram get boardnum)" = "2" ] || \
-[ "$(nvram get boardnum)" = "1024" ] && {
- debug "### wap54g hack ###"
- NVRAM_wan_ifname="none"
- FAILSAFE_ifnames="eth0 eth1"
-}
-
-# defaults if lan_ifname is missing
-[ -z "$(nvram get lan_ifname)" ] && {
- NVRAM_lan_ifname="br0"
- NVRAM_lan_ifnames="vlan0 vlan2 eth1 eth2 eth3"
-}
-
-# defaults if wan_ifname is missing
-[ -z "$(nvram get wan_ifname)" ] && {
- NVRAM_wan_ifname="vlan1"
- NVRAM_wan_proto="dhcp"
-}
-
-# failsafe if reset is held
-[ "$FAILSAFE" = "true" ] && {
- echo "### YOU ARE IN FAILSAFE MODE ####"
- NVRAM_lan_ifname="br0"
- NVRAM_lan_ifnames=${FAILSAFE_ifnames:-"vlan0 vlan1 eth1"}
- NVRAM_lan_ipaddr="192.168.1.1"
- NVRAM_lan_netmask="255.255.255.0"
- NVRAM_lan_hwaddr="00:0B:AD:0A:DD:00"
- NVRAM_wan_ifname="none"
- NVRAM_wifi_ifname="none"
-}
diff --git a/obsolete-buildroot/sources/openwrt/root/etc/preinit b/obsolete-buildroot/sources/openwrt/root/etc/preinit
deleted file mode 100755
index 6e6a9c998a..0000000000
--- a/obsolete-buildroot/sources/openwrt/root/etc/preinit
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-# executed from squashfs before init to
-# transfer root to the jffs2 partition
-mount none /proc -t proc
-insmod diag
-echo 0x01 > /proc/sys/diag
-sleep 1
-if [ $(cat /proc/sys/reset) = 1 ] ; then
- export FAILSAFE=true
- while :; do { echo $(((X=(X+1)%8)%2)) > /proc/sys/diag; sleep $((X==0)); } done &
-else
- mtd unlock mtd4
- mount -t jffs2 /dev/mtdblock/4 /jffs
- pivot_root /jffs /jffs/rom
- mount none /dev -t devfs
- mount none /proc -t proc
- umount rom/proc rom/dev
-fi
-mount none /tmp -t ramfs
-exec /sbin/init
diff --git a/obsolete-buildroot/sources/openwrt/root/etc/profile b/obsolete-buildroot/sources/openwrt/root/etc/profile
deleted file mode 100644
index 29cd340b3e..0000000000
--- a/obsolete-buildroot/sources/openwrt/root/etc/profile
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-[ -f /etc/banner ] && cat /etc/banner
-
-export PATH=/bin:/sbin:/usr/bin:/usr/sbin
-export PS1='\u@\h:\w\$ '
-
-alias less=more
-alias vim=vi
-ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
diff --git a/obsolete-buildroot/sources/openwrt/root/etc/sysctl.conf b/obsolete-buildroot/sources/openwrt/root/etc/sysctl.conf
deleted file mode 100644
index 8552a4ba32..0000000000
--- a/obsolete-buildroot/sources/openwrt/root/etc/sysctl.conf
+++ /dev/null
@@ -1,7 +0,0 @@
-kernel.panic = 3
-net.ipv4.ip_forward = 1
-net.ipv4.icmp_echo_ignore_broadcasts = 1
-net.ipv4.icmp_ignore_bogus_error_responses = 1
-net.ipv4.tcp_fin_timeout = 30
-net.ipv4.tcp_keepalive_time = 120
-net.ipv4.tcp_timestamps = 0