Changeset 89


Ignore:
Timestamp:
2004-07-12T05:37:39+02:00 (12 years ago)
Author:
mbm
Message:

pppoe hooks

Location:
trunk/root/etc
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/root/etc/functions.sh

    r81 r89  
    105105  debug "### ifdown $type ###" 
    106106  if=$(nvram_get ${type}_ifname) 
    107   if_valid $if && $DEBUG ifconfig $if down 
     107  if_valid $if || return 
     108  kill $(cat /var/run/${if}.pid 2>-)2>- 
     109  $DEBUG ifconfig $if down 
    108110) 
  • trunk/root/etc/init.d/S10boot

    r27 r89  
    33echo "S" > /proc/jffs2_bbc 
    44 
     5mkdir -p /var/run 
     6 
    57# networking stub 
    68[ "$(nvram get il0macaddr)" = "00:90:4c:5f:00:2a" ] && { 
    7   # force unique mac 
     9  # force unique wireless mac 
    810  nvram set il0macaddr=$(nvram get et0macaddr| 
    9   awk -F ":" '{for(x=6,y=2;x;x--){y+=int("0x"$x);$x=sprintf("%02x",y%256);y/=256}gsub(" ",":");print$0}') 
     11  awk -F ":" '{for(x=6,y=2;x;x--){y+=int("0x"$x);$x=sprintf("%02x",y%256);y/=256}gsub(" ",":");print}') 
    1012} 
    1113 
  • trunk/root/etc/init.d/S45firewall

    r18 r89  
    1919$IPT -t filter -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT  
    2020$IPT -t filter -A FORWARD -i $WAN -m state --state NEW,INVALID -j DROP 
     21$IPT -t filter -A FORWARD -o $WAN -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu 
    2122 
    2223$IPT -t nat -A POSTROUTING -o $WAN -j MASQUERADE 
  • trunk/root/etc/nvram.overrides

    r87 r89  
    11# NVRAM overrides 
    22# This file handles the NVRAM quirks of various hardware 
     3# this is not a replacement for nvram. 
    34 
    45# linksys bug has lan doing dhcp; force static 
Note: See TracChangeset for help on using the changeset viewer.