From 74b2c4885e2864f593049c50c9eb7aa78061d7d0 Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Thu, 24 Dec 2020 14:25:38 -0600 Subject: [PATCH] Improve l2tp_ppp fix - Improve fix for l2tp_ppp: Instead of commenting out ExecStartPre, ignore the return code with the '-' prefix --- vpnsetup_centos.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vpnsetup_centos.sh b/vpnsetup_centos.sh index 5fdb80e..aa39e78 100755 --- a/vpnsetup_centos.sh +++ b/vpnsetup_centos.sh @@ -479,7 +479,7 @@ fi # Fix xl2tpd if l2tp_ppp is unavailable if ! modprobe -q l2tp_ppp; then - sed -i '/^ExecStartPre/s/^/#/' /usr/lib/systemd/system/xl2tpd.service + sed -i '/^ExecStartPre=\//s/=/=-/' /usr/lib/systemd/system/xl2tpd.service systemctl daemon-reload fi