Parent Directory | Revision Log | Revision Graph
* 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 |