diff options
author | makefu <root@pigstarter.de> | 2013-01-24 02:12:53 +0000 |
---|---|---|
committer | makefu <root@pigstarter.de> | 2013-01-24 02:12:53 +0000 |
commit | c939be138f8c51766032c91c11558e5a79fa15c5 (patch) | |
tree | b4af661a09f2fc2427a644811f6b4754f254ee0a /retiolum/scripts | |
parent | 0c1883da9a8667595c528130cb9ddc7b0c4a04b2 (diff) | |
parent | 14ae58b1f8712c7db98c4b85e18fe632b9dd3a3d (diff) |
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'retiolum/scripts')
-rwxr-xr-x | retiolum/scripts/tinc_setup/new_install.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/retiolum/scripts/tinc_setup/new_install.sh b/retiolum/scripts/tinc_setup/new_install.sh index 18096e1f..65611b1c 100755 --- a/retiolum/scripts/tinc_setup/new_install.sh +++ b/retiolum/scripts/tinc_setup/new_install.sh @@ -166,6 +166,7 @@ if [ $OS -eq 2 ]; then if [ $TINCDIR = 'auto' ]; then TINCDIR="/usr/local/etc/tinc" ;fi if [ $TEMPDIR = 'auto' ]; then TEMPDIR="/storage/sdcard0/tinc-fu" ;fi mount -o remount,rw / + mount -o remount,rw /system DEV="/dev/tun" fi else @@ -305,6 +306,12 @@ else yes | $TINCBIN -n $NETNAME -K fi +if [ $OS -eq 2 ]; then + mkdir /etc/tinc + cd / + mv $TINCDIR/$NETNAME /etc/tinc/ + cd /etc/tinc/$NETNAME +fi #write to irc-channel NICK="${HOSTN}_$(head /dev/urandom | tr -dc "0123456789" | head -c3)" |