tuto2: fix syntax error
This commit is contained in:
parent
944852ef0d
commit
c7ec238657
@ -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)
|
||||
|
Reference in New Issue
Block a user