summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederik "Freso" S. Olesen2012-09-27 21:23:00 +0200
committerFrederik “Freso” S. Olesen2012-09-27 21:23:00 +0200
commitb9fd6557f06efcfe385be1a2dfd0d134dc69b4f6 (patch)
tree64bab693c06797f2d2f6e571285c703d1adfa9aa
parent493a75b9f83a3fd6f6b800f7b78c70fcbe96ecc3 (diff)
downloadaur-b9fd6557f06efcfe385be1a2dfd0d134dc69b4f6.tar.gz
networkmanager-dispatcher-pdnsd: Fixed pdnsd_is_running().
-rwxr-xr-x00-pdnsd7
1 files changed, 4 insertions, 3 deletions
diff --git a/00-pdnsd b/00-pdnsd
index acbdd104ee1e..b6049d26aa13 100755
--- a/00-pdnsd
+++ b/00-pdnsd
@@ -16,10 +16,11 @@ pdnsd_is_running() {
case "$INIT" in
'systemd')
systemctl is-active pdnsd.service -q
- return [ ! $? = 0 ]
+ return $?
;;
'init')
- return [ `rc.d list|grep pdnsd|cut -f1 -d']'|cut -d'[' -f2` == 'STARTED' ]
+ [ `rc.d list|grep pdnsd|cut -f1 -d']'|cut -d'[' -f2` = 'STARTED' ]
+ return $?
;;
*)
no_valid_init
@@ -28,7 +29,7 @@ pdnsd_is_running() {
}
pdnsd_going_up() {
- if [ ! pdnsd_is_running ]; then
+ if ! pdnsd_is_running; then
# pDNSd isn't running. Start it.
case "$INIT" in
'systemd')