From 84f23281fd5f4478618646622ee8d8d3fde0c807 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Fri, 15 Mar 2019 18:28:38 +0100 Subject: [PATCH] init tuto2: allow user to alter the boot sequence (eg. to perform a custom modprobe) --- tuto2.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tuto2.yml b/tuto2.yml index 67766cd..352c00b 100644 --- a/tuto2.yml +++ b/tuto2.yml @@ -107,6 +107,8 @@ files: mount --move . / /bin/umount -n /overlay + [ -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}" ] && { @@ -114,7 +116,7 @@ files: read WGTOKEN } /sbin/sysctl -w net.ipv6.conf.eth0.autoconf=0 - /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)