feat: sysvinit

This commit is contained in:
fauno 2024-11-12 12:46:14 -03:00
parent 3e62d4f179
commit 5411522cbc

View File

@ -87,6 +87,15 @@ test -d /etc/logrotate.d && \
test -d /etc/NetworkManager/dispatcher.d && \
${sudo} install -Dm 750 -o root -g root ${RAP_SKELDIR}/50_tincd /etc/NetworkManager/dispatcher.d/
if test -f /etc/tinc/nets.boot ; then
if ! grep -q "^${NETWORK}$" /etc/tinc/nets.boot; then
msg "Iniciando sysVinit"
echo "${NETWORK}" | ${sudo} tee -a /etc/tinc/nets.boot >/dev/null
${sudo} update-rc.d tinc defaults
fi
fi
# Recargar los cambios en la configuración
if pgrep tincd &>/dev/null; then
msg "Recargando tincd..."