Loading rootdir/Android.mk +0 −1 Original line number Diff line number Diff line Loading @@ -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)) Loading rootdir/etc/ppp/ip-up-vpndeleted 100755 → 0 +0 −18 Original line number Diff line number Diff line #!/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" Loading
rootdir/Android.mk +0 −1 Original line number Diff line number Diff line Loading @@ -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)) Loading
rootdir/etc/ppp/ip-up-vpndeleted 100755 → 0 +0 −18 Original line number Diff line number Diff line #!/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"