Initial import of eclair rootfs image
[xdandroid:rootfs.git] / init.etc / ppp / ip-down
1 #!/bin/sh
2 case $1 in
3 ppp0)
4         /bin/echo -e "PPP connection went down" >> /smodem/ppp.log
5         /bin/echo -e "Done!" >> /smodem/ppp.log
6         ;;
7 ppp1)
8         echo 0 > /proc/sys/net/ipv4/ip_forward;
9         ;;
10 esac
11
12 # Use interface name if linkname is not available
13 NAME=${LINKNAME:-"$1"}
14
15 /system/bin/setprop "net.$NAME.dns1" "$DNS1"
16 /system/bin/setprop "net.$NAME.dns2" "$DNS2" 
17 /system/bin/setprop "net.$NAME.local-ip" "$IPLOCAL" 
18 /system/bin/setprop "net.$NAME.remote-ip" "$IPREMOTE"