From bf3eda107c10e5d73c716744bfadaee4b4ab0093 Mon Sep 17 00:00:00 2001 From: kaloz Date: Mon, 17 Oct 2005 12:24:08 +0000 Subject: removed the old directories, too.. cleanup is ready, yay git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2130 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../sources/openwrt/root/etc/init.d/S10boot | 25 ---------------------- .../sources/openwrt/root/etc/init.d/S40network | 15 ------------- .../sources/openwrt/root/etc/init.d/S45firewall | 23 -------------------- .../sources/openwrt/root/etc/init.d/S50dnsmasq | 2 -- .../sources/openwrt/root/etc/init.d/S50httpd | 2 -- .../sources/openwrt/root/etc/init.d/S50telnet | 2 -- .../sources/openwrt/root/etc/init.d/S99done | 7 ------ .../sources/openwrt/root/etc/init.d/rcS | 25 ---------------------- 8 files changed, 101 deletions(-) delete mode 100755 obsolete-buildroot/sources/openwrt/root/etc/init.d/S10boot delete mode 100755 obsolete-buildroot/sources/openwrt/root/etc/init.d/S40network delete mode 100755 obsolete-buildroot/sources/openwrt/root/etc/init.d/S45firewall delete mode 100755 obsolete-buildroot/sources/openwrt/root/etc/init.d/S50dnsmasq delete mode 100755 obsolete-buildroot/sources/openwrt/root/etc/init.d/S50httpd delete mode 100755 obsolete-buildroot/sources/openwrt/root/etc/init.d/S50telnet delete mode 100755 obsolete-buildroot/sources/openwrt/root/etc/init.d/S99done delete mode 100755 obsolete-buildroot/sources/openwrt/root/etc/init.d/rcS (limited to 'obsolete-buildroot/sources/openwrt/root/etc/init.d') 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 81379bed4..000000000 --- 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 a8144a837..000000000 --- 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 49b9df000..000000000 --- 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 995c1b6e7..000000000 --- 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 fd66f8032..000000000 --- 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 29af5040a..000000000 --- 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 8811e99bf..000000000 --- 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 9510e941a..000000000 --- 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 -- cgit v1.2.3