Setup script added
authorRoman Bazalevskiy <rvb@rvb.name>
Tue, 31 Oct 2017 11:04:05 +0000 (14:04 +0300)
committerRoman Bazalevskiy <rvb@rvb.name>
Tue, 31 Oct 2017 11:04:05 +0000 (14:04 +0300)
setup.sh [new file with mode: 0644]

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