feat: sysvinit
This commit is contained in:
parent
3e62d4f179
commit
5411522cbc
@ -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..."
|
||||
|
Loading…
x
Reference in New Issue
Block a user