stunnel4/debian/stunnel4.0stunnel4.ppp.ip-down
2017-03-28 09:58:14 +02:00

10 lines
301 B
Bash

#!/bin/sh
# if this script gets called, we assume that the machine has lost
# IPv4 connectivity -> restart stunnel (do not stop it, it is possible
# to have a eth connection)
test -f /etc/default/stunnel4 && . /etc/default/stunnel4
test "$PPP_RESTART" != "0" || exit 0
invoke-rc.d stunnel4 restart