1
0
mirror of synced 2024-11-25 06:16:07 +03:00

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:
hwdsl2 2020-12-24 14:25:38 -06:00
parent dbb5d0576d
commit 74b2c4885e

View File

@ -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