summaryrefslogtreecommitdiffstats
path: root/rootdir/etc
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-06-26 15:19:39 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-06-26 15:19:39 -0700
commitbbdab64ddd5341bb7f7c923bc86f43bdbc7d89dc (patch)
tree6e6d2849ac63d8307c98395449da616746acf6d5 /rootdir/etc
parenta1140ad45dc90e6f51944a12d0a690e757c9bd0b (diff)
parentabd54c1b78983ce425250dba137e203b7020637e (diff)
downloadsystem_core-bbdab64ddd5341bb7f7c923bc86f43bdbc7d89dc.zip
system_core-bbdab64ddd5341bb7f7c923bc86f43bdbc7d89dc.tar.gz
system_core-bbdab64ddd5341bb7f7c923bc86f43bdbc7d89dc.tar.bz2
Merge change 4592 into donut
* changes: rootdir: Remove gprs/pppd related scripts.
Diffstat (limited to 'rootdir/etc')
-rwxr-xr-xrootdir/etc/init.gprs-pppd23
-rw-r--r--rootdir/etc/ppp/chap-secrets2
-rwxr-xr-xrootdir/etc/ppp/ip-down1
-rwxr-xr-xrootdir/etc/ppp/ip-up33
4 files changed, 0 insertions, 59 deletions
diff --git a/rootdir/etc/init.gprs-pppd b/rootdir/etc/init.gprs-pppd
deleted file mode 100755
index 521eec9..0000000
--- a/rootdir/etc/init.gprs-pppd
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/system/bin/sh
-# An unforunate wrapper script
-# so that the exit code of pppd may be retrieved
-
-
-# this is a workaround for issue #651747
-#trap "/system/bin/sleep 1;exit 0" TERM
-
-
-PPPD_PID=
-
-/system/bin/setprop "net.gprs.ppp-exit" ""
-
-/system/bin/log -t pppd "Starting pppd"
-
-/system/bin/pppd $*
-
-PPPD_EXIT=$?
-PPPD_PID=$!
-
-/system/bin/log -t pppd "pppd exited with $PPPD_EXIT"
-
-/system/bin/setprop "net.gprs.ppp-exit" "$PPPD_EXIT"
diff --git a/rootdir/etc/ppp/chap-secrets b/rootdir/etc/ppp/chap-secrets
deleted file mode 100644
index 6546b0f..0000000
--- a/rootdir/etc/ppp/chap-secrets
+++ /dev/null
@@ -1,2 +0,0 @@
-* * bogus
-
diff --git a/rootdir/etc/ppp/ip-down b/rootdir/etc/ppp/ip-down
deleted file mode 100755
index 58d21e5..0000000
--- a/rootdir/etc/ppp/ip-down
+++ /dev/null
@@ -1 +0,0 @@
-#!/system/bin/sh
diff --git a/rootdir/etc/ppp/ip-up b/rootdir/etc/ppp/ip-up
deleted file mode 100755
index 8c8f12c..0000000
--- a/rootdir/etc/ppp/ip-up
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/system/bin/sh
-
-# Use interface name if linkname is not available
-
-/system/bin/setprop "net.dns1" "$DNS1"
-/system/bin/setprop "net.dns2" "$DNS2"
-
-# Retrieve the default gateway from /proc/net/route
-RTAB=`cat /proc/net/route`
-flag=-1; i=0;
-for l in $RTAB; do
- if (exp flag==1) then DGW=$l; flag=0; fi;
- if (exp i%11 == 1) then
- if (exp $l=="00000000") then flag=1; fi;
- fi;
- i=`exp i+1`;
-done
-FH=${DGW%????}
-LH=${DGW#????}
-A=`exp 0x${LH#??}`
-B=`exp 0x${LH%??}`
-C=`exp 0x${FH#??}`
-D=`exp 0x${FH%??}`
-GATEWAY="$A.$B.$C.$D"
-VPNSERVER=`getprop "net.vpn.server_ip"`
-
-# Protect the route to vpn server
-/system/bin/route add -net $VPNSERVER netmask 255.255.255.255 gw $GATEWAY
-
-# Route all traffic to vpn connection
-/system/bin/route add -net 0.0.0.0 netmask 128.0.0.0 gw $IPREMOTE
-/system/bin/route add -net 128.0.0.0 netmask 128.0.0.0 gw $IPREMOTE
-