/[smecontribs]/rpms/ddclient/contribs10/ddclient.NetworkManager
ViewVC logotype

Contents of /rpms/ddclient/contribs10/ddclient.NetworkManager

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Tue Jun 30 09:38:29 2020 UTC (4 years, 4 months ago) by brianr
Branch: MAIN
CVS Tags: ddclient-3_10_0-1_el7_sme, ddclient-3_9_1-2_el7_sme, ddclient-3_11_2-1_el7_sme, ddclient-3_11_1-1_el7_sme, HEAD
Error occurred while calculating annotation data.
* Tue Jun 30 2020 Brian Read <brianr@bjsystems.co.uk> - 3.9.1-2
- Change service options to delete PID spec and add -file option to run [SME:10942]
- Delete buildrequires perl-generators in spec (no idea what or why - it works though!)

1 #!/bin/sh
2
3 export LC_ALL=C
4
5 if [ "$2" = "down" ]; then
6 /sbin/ip route ls | grep -q '^default' || {
7 [ -f /var/run/ddclient/ddclient.pid ] && /usr/bin/systemctl stop ddclient.service || :
8 } && { :; }
9 fi
10
11 if [ "$2" = "up" ]; then
12 /sbin/ip -o route show dev "$1" | grep -q '^default' && {
13 /usr/bin/systemctl is-enabled ddclient >/dev/null && /usr/bin/systemctl start ddclient.service || :
14 } || { :; }
15 fi

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed