stunnel4/debian/stunnel4.0stunnel4.ppp.ip-down

10 lines
301 B
Plaintext
Raw Permalink Normal View History

2013-04-22 19:47:34 +02:00
#!/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