diff --git a/tuto2.yml b/tuto2.yml index 4ad8664..3720a2f 100644 --- a/tuto2.yml +++ b/tuto2.yml @@ -107,16 +107,17 @@ files: mount --move . / /bin/umount -n /overlay - [ -f "etc/adlin.init"] && source etc/adlin.init + [ -f "etc/adlin.init" ] && source etc/adlin.init # Setting up wireguard tunnel [ -z "${WGTOKEN}" ] && [ -f "etc/adlin.token" ] && WGTOKEN=$(cat etc/adlin.token) [ -z "${WGTOKEN}" ] && { + echo echo -n "You didn't define your token to connect the network. Please copy it here now: " read WGTOKEN } /sbin/sysctl -w net.ipv6.conf.eth0.autoconf=0 - /bin/ip link set up dev eth0 || { /sbin/modprobe e1000; /bin/ip link set up dev eth0 } + /bin/ip link set up dev eth0 || { /sbin/modprobe e1000; /bin/ip link set up dev eth0; } /bin/busybox udhcpc -n -q [ -f "etc/wireguard/adlin.conf" ] && WGPRVKEY=$(sed 's/^.*PrivateKey *= *//p;d' etc/wireguard/adlin.conf) [ -z "${WGPRVKEY}" ] && WGPRVKEY=$(/usr/bin/wg genkey)