You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: root/etc/cont-init.d/30-config
+59-53Lines changed: 59 additions & 53 deletions
Original file line number
Diff line number
Diff line change
@@ -11,21 +11,21 @@ if ip link add dev test type wireguard; then
11
11
ip link del dev test
12
12
else
13
13
echo "**** The wireguard module is not active, will attempt kernel header install and module compilation. If you believe that your kernel should have wireguard support already, make sure that it is activated via modprobe! ****"
14
-
fi
14
+
fi
15
15
16
16
# install headers if necessary
17
17
if [ "$SKIP_COMPILE" != "true" ] && [ ! -e /lib/modules/$(uname -r)/build ]; then
18
18
echo "**** Attempting kernel header install ****"
19
19
apt-get update
20
-
if apt-cache show linux-headers-$(uname -r) 2&>1 >/dev/null; then
20
+
if apt-cache show linux-headers-$(uname -r) 2&>1 >/dev/null; then
@@ -35,21 +35,21 @@ if [ "$SKIP_COMPILE" != "true" ] && [ ! -e /lib/modules/$(uname -r)/build ]; the
35
35
if uname -m | grep -q 'x86_64'; then
36
36
echo -e \
37
37
"deb http://archive.ubuntu.com/ubuntu/ bionic main restricted\ndeb-src http://archive.ubuntu.com/ubuntu/ bionic main restricted\n\ndeb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted\ndeb-src http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted" \
38
-
>/etc/apt/sources.list.d/xenial-bionic.list
38
+
>/etc/apt/sources.list.d/xenial-bionic.list
39
39
else
40
40
echo -e \
41
-
"deb http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted\ndeb-src http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted\n\ndeb http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted\ndeb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted" \
42
-
>/etc/apt/sources.list.d/xenial-bionic.list
41
+
"deb http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted\ndeb-src http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted\n\ndeb http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted\ndeb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted" \
42
+
>/etc/apt/sources.list.d/xenial-bionic.list
43
43
fi
44
44
apt-get update
45
-
if apt-cache show linux-headers-$(uname -r) 2&>1 >/dev/null; then
45
+
if apt-cache show linux-headers-$(uname -r) 2&>1 >/dev/null; then
46
46
apt-get install -y \
47
47
linux-headers-$(uname -r)
48
48
else
49
49
echo "**** No kernel headers found in the Ubuntu Bionic repo!! Trying Ubuntu Xenial. ****"
50
50
sed -i 's/bionic/xenial/g' /etc/apt/sources.list.d/xenial-bionic.list
51
51
apt-get update
52
-
if apt-cache show linux-headers-$(uname -r) 2&>1 >/dev/null; then
52
+
if apt-cache show linux-headers-$(uname -r) 2&>1 >/dev/null; then
53
53
apt-get install -y \
54
54
linux-headers-$(uname -r)
55
55
else
@@ -61,7 +61,7 @@ if [ "$SKIP_COMPILE" != "true" ] && [ ! -e /lib/modules/$(uname -r)/build ]; the
61
61
echo "**** Debian host detected, attempting to install kernel headers from Debian Buster repo ****"
0 commit comments