Mercurial > hg > dhcpcd
changeset 2955:17d1f58bc244 draft
logger(1) from util-linux-2.26 now has an option argument to -i, so work
with this as well.
Fixes [eb1ef6a62b].
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Mon, 23 Feb 2015 09:35:42 +0000 |
| parents | 32b237987cef |
| children | 7f0f34ed67d8 |
| files | dhcpcd-run-hooks.in |
| diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/dhcpcd-run-hooks.in Fri Feb 20 08:28:04 2015 +0000 +++ b/dhcpcd-run-hooks.in Mon Feb 23 09:35:42 2015 +0000 @@ -192,10 +192,9 @@ ${syslog_debug} || return 0 fi [ -n "$lvl" ] && shift - if [ -n "$*" ]; then - if type logger >/dev/null 2>&1; then - logger -t dhcpcd -p daemon."$lvl" -is "$interface: $*" - fi + [ -n "$*" ] || return 0 + if type logger >/dev/null 2>&1; then + logger -i -p daemon."$lvl" -s -t dhcpcd "$interface: $*" fi }
