system/corennnnn
リビジョン | 160d4b0509e4566930ef9af4f2b9d63b33aebee5 (tree) |
---|---|
日時 | 2009-07-13 13:22:36 |
作者 | Android (Google) Code Review <android-gerrit@goog...> |
コミッター | Android (Google) Code Review |
Merge change 6738 into donut
* changes:
@@ -6,7 +6,6 @@ include $(CLEAR_VARS) | ||
6 | 6 | copy_from := \ |
7 | 7 | etc/dbus.conf \ |
8 | 8 | etc/init.goldfish.sh \ |
9 | - etc/ppp/ip-up-vpn \ | |
10 | 9 | etc/hosts |
11 | 10 | |
12 | 11 | copy_to := $(addprefix $(TARGET_OUT)/,$(copy_from)) |
@@ -1,18 +0,0 @@ | ||
1 | -#!/system/bin/sh | |
2 | - | |
3 | -/system/bin/setprop "vpn.dns1" "$DNS1" | |
4 | -/system/bin/setprop "vpn.dns2" "$DNS2" | |
5 | - | |
6 | -GATEWAY=${6#*@} | |
7 | -VPNSERVER=${6%@*} | |
8 | - | |
9 | -# Protect the route to vpn server | |
10 | -/system/bin/route add -net "$VPNSERVER" netmask 255.255.255.255 gw "$GATEWAY" | |
11 | - | |
12 | -if (exp $?) ; then exit $?; fi | |
13 | - | |
14 | -# Route all traffic to vpn connection | |
15 | -/system/bin/route add -net 0.0.0.0 netmask 128.0.0.0 gw $IPREMOTE | |
16 | -/system/bin/route add -net 128.0.0.0 netmask 128.0.0.0 gw $IPREMOTE | |
17 | - | |
18 | -/system/bin/setprop "vpn.up" "1" |