diff options
author | Lassulus <lassulus@googlemail.com> | 2012-12-10 01:48:25 +0100 |
---|---|---|
committer | Lassulus <lassulus@googlemail.com> | 2012-12-10 01:48:25 +0100 |
commit | bce2e977ba603a3fa27d77827263a99d2913482e (patch) | |
tree | 9f6ee924417cde1c8b2d8c386514101433ad963a /retiolum/scripts | |
parent | bf7e7d7db64bb7c8827cb176d2ac6b8dd06741fc (diff) |
removed openssl dependency
Diffstat (limited to 'retiolum/scripts')
-rwxr-xr-x | retiolum/scripts/tinc_setup/new_install.sh | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/retiolum/scripts/tinc_setup/new_install.sh b/retiolum/scripts/tinc_setup/new_install.sh index 049eeca5..275805a7 100755 --- a/retiolum/scripts/tinc_setup/new_install.sh +++ b/retiolum/scripts/tinc_setup/new_install.sh @@ -156,11 +156,6 @@ if ! which hostname&>/dev/null; then exit 1 fi -if ! which openssl&>/dev/null; then - echo "Please install openssl" - exit 1 -fi - if ! which curl&>/dev/null; then if ! which wget&>/dev/null; then echo "Please install curl or wget" @@ -268,7 +263,7 @@ done #version 6 until check_ip_taken $IP6; do if [ $RAND6 -eq 1 ]; then - IP6="$SUBNET6$(openssl rand -hex 14 | sed 's/..../:&/g')" #todo: generate ip length from hostmask + IP6="$SUBNET6$(head /dev/urandom | tr -dc "0123456789abcdef" | head -c28 | sed 's/..../:&/g')" #todo: generate ip length from hostmask else printf 'ip taken, choose new ip: ' |