You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
504 B
27 lines
504 B
#!/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
|
|
|
|
|