From bce2e977ba603a3fa27d77827263a99d2913482e Mon Sep 17 00:00:00 2001 From: Lassulus Date: Mon, 10 Dec 2012 01:48:25 +0100 Subject: removed openssl dependency --- retiolum/scripts/tinc_setup/new_install.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'retiolum/scripts') 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: ' -- cgit v1.2.3