From 1219448dc7c2012edaf8fbb6b03c11d8dc419f89 Mon Sep 17 00:00:00 2001 From: Chia-chi Yeh Date: Fri, 10 Jul 2009 12:27:09 +0800 Subject: [PATCH] rootdir: Remove ip-up-vpn script, which is replaced by an executable. --- rootdir/Android.mk | 1 - rootdir/etc/ppp/ip-up-vpn | 18 ------------------ 2 files changed, 19 deletions(-) delete mode 100755 rootdir/etc/ppp/ip-up-vpn diff --git a/rootdir/Android.mk b/rootdir/Android.mk index e66b1c359..db98fab01 100644 --- a/rootdir/Android.mk +++ b/rootdir/Android.mk @@ -6,7 +6,6 @@ include $(CLEAR_VARS) copy_from := \ etc/dbus.conf \ etc/init.goldfish.sh \ - etc/ppp/ip-up-vpn \ etc/hosts copy_to := $(addprefix $(TARGET_OUT)/,$(copy_from)) diff --git a/rootdir/etc/ppp/ip-up-vpn b/rootdir/etc/ppp/ip-up-vpn deleted file mode 100755 index 5d6b61148..000000000 --- a/rootdir/etc/ppp/ip-up-vpn +++ /dev/null @@ -1,18 +0,0 @@ -#!/system/bin/sh - -/system/bin/setprop "vpn.dns1" "$DNS1" -/system/bin/setprop "vpn.dns2" "$DNS2" - -GATEWAY=${6#*@} -VPNSERVER=${6%@*} - -# Protect the route to vpn server -/system/bin/route add -net "$VPNSERVER" netmask 255.255.255.255 gw "$GATEWAY" - -if (exp $?) ; then exit $?; fi - -# 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 - -/system/bin/setprop "vpn.up" "1"