From 0f85a3d4ba9ff457fc23578eb9b4fd6ff241856a Mon Sep 17 00:00:00 2001 From: Lukas Nykryn Date: Tue, 27 Aug 2024 11:35:40 +0200 Subject: [PATCH] netconsole: remove trailing whitespaces --- usr/libexec/netconsole | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/usr/libexec/netconsole b/usr/libexec/netconsole index 3f2872dd2..26c9baabc 100755 --- a/usr/libexec/netconsole +++ b/usr/libexec/netconsole @@ -1,5 +1,5 @@ #!/bin/bash -# +# # netconsole This loads the netconsole module with the configured parameters. # # chkconfig: - 50 50 @@ -50,7 +50,7 @@ print_address_info () local route via target route=$(LANG=C ip -o route get to $host/32) - + [ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|") echo "DEV=$DEV" echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")" @@ -63,9 +63,9 @@ print_address_info () if [ -z "$SYSLOGMACADDR" ]; then arp=$(LANG=C /sbin/arping -f -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G"); exit }') [ -n "$arp" ] && echo "SYSLOGMACADDR=$arp" - fi -} - + fi +} + start () { [ -f /etc/sysconfig/netconsole ] || exit 6 @@ -101,7 +101,7 @@ start () exit 6 fi eval $(print_address_info $SYSLOGADDR) - + if [ -z "$SYSLOGMACADDR" ]; then echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2 exit 1 @@ -140,7 +140,6 @@ status () fi } - restart () { stop @@ -152,7 +151,6 @@ condrestart () [ -e /var/lock/subsys/netconsole ] && restart } - case "$1" in stop) stop ;; status) status ;;