diff options
author | Mike Baker <mbm@openwrt.org> | 2004-03-28 00:20:21 +0000 |
---|---|---|
committer | Mike Baker <mbm@openwrt.org> | 2004-03-28 00:20:21 +0000 |
commit | fee8556c06c10bfed0af070b604f47554a24306f (patch) | |
tree | 04569b929ee1a66b3a55263f075e6249870af6b6 /root/etc/rcS | |
parent | 71112885432bfe29b67e802d8995566b652c2b20 (diff) | |
download | mtk-20170518-fee8556c06c10bfed0af070b604f47554a24306f.zip mtk-20170518-fee8556c06c10bfed0af070b604f47554a24306f.tar.gz mtk-20170518-fee8556c06c10bfed0af070b604f47554a24306f.tar.bz2 |
inital commit of 20040316
SVN-Revision: 4
Diffstat (limited to 'root/etc/rcS')
-rwxr-xr-x | root/etc/rcS | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/root/etc/rcS b/root/etc/rcS new file mode 100755 index 0000000..e2ab185 --- /dev/null +++ b/root/etc/rcS @@ -0,0 +1,27 @@ +#!/bin/sh + +export TZ=$(nvram get tz) + +insmod diag +echo "0x01" > /proc/sys/diag +echo "3" >/proc/sys/kernel/panic + +# networking +insmod et +insmod wl + +ifconfig lo 127.0.0.1 up + +# eth0 and eth1 are shared, must set eth0 as promisc +ifconfig eth0 promisc +ifconfig eth1 promisc +/etc/networking.sh + +# now lets set up a basic set of rules to do ip masquerade +/etc/firewall.sh + +# now lets start some basic services +/usr/sbin/telnetd +/usr/sbin/httpd -p 80 -h /www -r WRT54G Router +/usr/sbin/udhcpd /etc/udhcpd.conf + |