mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-10 08:54:18 +02:00
Backport upstream fix for pppd failing to start when lock dir does not exist (by reverting the lock dir to somewhere that should always exist) This fixes using pppd from something else than the main pppd service (e.g. networkmanager of ifupdown-ng), as these would not go through the checkpath hook, and pppd can now run without /run/ppp Link: https://github.com/ppp-project/ppp/pull/435 Fixes: #15145
13 lines
220 B
Bash
Executable file
13 lines
220 B
Bash
Executable file
#!/sbin/openrc-run
|
|
|
|
name="pppd"
|
|
command="/usr/sbin/${SVCNAME}"
|
|
command_args="nodetach ${PPPD_OPTS}"
|
|
pidfile="/run/$RC_SVCNAME.pid"
|
|
command_background=true
|
|
|
|
start_pre() {
|
|
checkpath --directory /run/ppp
|
|
modprobe pptp
|
|
}
|
|
|