diff options
author | Frederik "Freso" S. Olesen | 2012-09-27 21:23:00 +0200 |
---|---|---|
committer | Frederik “Freso” S. Olesen | 2012-09-27 21:23:00 +0200 |
commit | b9fd6557f06efcfe385be1a2dfd0d134dc69b4f6 (patch) | |
tree | 64bab693c06797f2d2f6e571285c703d1adfa9aa | |
parent | 493a75b9f83a3fd6f6b800f7b78c70fcbe96ecc3 (diff) | |
download | aur-b9fd6557f06efcfe385be1a2dfd0d134dc69b4f6.tar.gz |
networkmanager-dispatcher-pdnsd: Fixed pdnsd_is_running().
-rwxr-xr-x | 00-pdnsd | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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') |