tuto2: fix syntax error

This commit is contained in:
nemunaire 2019-03-31 16:07:19 +02:00
parent 944852ef0d
commit c7ec238657

View File

@ -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)