diff options
| author | root <root@devstar.localdomain> | 2013-01-24 10:23:16 +0100 |
|---|---|---|
| committer | root <root@devstar.localdomain> | 2013-01-24 10:23:16 +0100 |
| commit | 17ad911ae984843d467f8492b0644227715f203a (patch) | |
| tree | 36164cd1dd4308375c26a5c3a4784d2768f850e7 /retiolum/scripts/tinc_setup | |
| parent | 3380e4d7cd0d22b228725d060b3a2b7cc0fa2678 (diff) | |
| parent | 55d7d06d41fc47d32e4c138cb5aa7127cfd4864b (diff) | |
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'retiolum/scripts/tinc_setup')
| -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)" |
