Improve l2tp_ppp fix
- Improve fix for l2tp_ppp: Instead of commenting out ExecStartPre, ignore the return code with the '-' prefix
This commit is contained in:
parent
dbb5d0576d
commit
74b2c4885e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user