From: Mazet Laurent Date: Fri, 12 Sep 2025 17:04:18 +0000 (+0200) Subject: script for app board, modem board and cm (soft/hard) X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=fa277079c9bd96580c84f83b3375fe925be27ef6;p=ulvpn.git script for app board, modem board and cm (soft/hard) --- diff --git a/ulvpn.sh b/ulvpn.sh index 2e06dbf..993656a 100755 --- a/ulvpn.sh +++ b/ulvpn.sh @@ -1,20 +1,14 @@ #!/bin/bash MTU=1439 -[ $# -gt 0 ] && MTU=$1 TEST=$(basename $0 .sh) +PWD=$(dirname $0) +PWD=/opt/ulvpn/bin -LRED=enp0s9://78:a1:35:10:10:10 -LBLK=enp0s8://78:a1:35:20:20:20 -RRED=enp0s9://78:a1:35:01:01:01 -RBLK=enp0s8://78:a1:35:02:02:02 - -LOOP=lo://00:00:00:00:00:00 - -CRYPTOMOD=./cryptomod.exe -SIMULATOR=./simulator.exe -VPN=./ulvpn.exe +CRYPTOMOD=$PWD/cryptomod.exe +SIMULATOR=$PWD/simulator.exe +VPN=$PWD/ulvpn.exe ulimit -c unlimited @@ -24,82 +18,167 @@ pass() { echo -e "\033[1;32m$@\033[0;0m"; } warn() { echo -e "\033[1;33m$@\033[0;0m"; } fail() { echo -e "\033[1;31m$@\033[0;0m"; } -if [ ! -f init.done ]; then - launch create configuration files - - dd if=/dev/random of=crypto.key bs=1 count=32 2>/dev/null - dd if=/dev/random of=prng.key bs=1 count=16 2>/dev/null - - cat > provisioning.eth </dev/null +echo -n "123456789abcdef0123456789abcdef0" > crypto.key +#dd if=/dev/random of=prng.key bs=1 count=16 2>/dev/null +echo -n "123456789abcdef0" >prng.key +cat > provisioning.eth < plaintext.txt <