Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemCore
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemCore
Commits
1219448d
Commit
1219448d
authored
Jul 10, 2009
by
Chia-chi Yeh
Browse files
Options
Downloads
Patches
Plain Diff
rootdir: Remove ip-up-vpn script, which is replaced by an executable.
parent
b3edd072
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
rootdir/Android.mk
+0
-1
0 additions, 1 deletion
rootdir/Android.mk
rootdir/etc/ppp/ip-up-vpn
+0
-18
0 additions, 18 deletions
rootdir/etc/ppp/ip-up-vpn
with
0 additions
and
19 deletions
rootdir/Android.mk
+
0
−
1
View file @
1219448d
...
...
@@ -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
))
...
...
This diff is collapsed.
Click to expand it.
rootdir/etc/ppp/ip-up-vpn
deleted
100755 → 0
+
0
−
18
View file @
b3edd072
#!/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"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment