projects
/
setroute.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0077e2e
)
Setup script added
author
Roman Bazalevskiy
<rvb@rvb.name>
Tue, 31 Oct 2017 11:04:05 +0000
(14:04 +0300)
committer
Roman Bazalevskiy
<rvb@rvb.name>
Tue, 31 Oct 2017 11:04:05 +0000
(14:04 +0300)
setup.sh
[new file with mode: 0644]
patch
|
blob
diff --git a/setup.sh
b/setup.sh
new file mode 100644
(file)
index 0000000..
ec5ec67
--- /dev/null
+++ b/
setup.sh
@@ -0,0
+1,8
@@
+#!/bin/sh
+vpn_set=`grep vpn /etc/iproute2/rt_tables | wc -l`
+if [ vpn_set = 0 ]; then
+ echo "60 vpn" >> /etc/iproute2/rt_tables
+fi
+apt-get -y install ipset
+cp -r usr/local/bin/* /usr/local/bin
+cp -r etc/* /etc
\ No newline at end of file