fix format issue in find_online_znet_device

Change spaces to tab to fix alignment issue.

Fixes: commit 7d47251568
       ("Iterate /sys/bus/ccwgroup/devices to tell if we should set up rd.znet")
Signed-off-by: Coiby Xu <coxu@redhat.com>
Acked-by: Kairui Song <kasong@redhat.com>
This commit is contained in:
Coiby Xu 2021-06-28 18:37:11 +08:00 committed by Kairui Song
parent 03f9b91351
commit ad6f60d70d

View File

@ -465,29 +465,29 @@ kdump_setup_vlan() {
# code reaped from the list_configured function of # code reaped from the list_configured function of
# https://github.com/hreinecke/s390-tools/blob/master/zconf/znetconf # https://github.com/hreinecke/s390-tools/blob/master/zconf/znetconf
find_online_znet_device() { find_online_znet_device() {
local CCWGROUPBUS_DEVICEDIR="/sys/bus/ccwgroup/devices" local CCWGROUPBUS_DEVICEDIR="/sys/bus/ccwgroup/devices"
local NETWORK_DEVICES d ifname ONLINE local NETWORK_DEVICES d ifname ONLINE
[ ! -d "$CCWGROUPBUS_DEVICEDIR" ] && return [ ! -d "$CCWGROUPBUS_DEVICEDIR" ] && return
NETWORK_DEVICES=$(find $CCWGROUPBUS_DEVICEDIR) NETWORK_DEVICES=$(find $CCWGROUPBUS_DEVICEDIR)
for d in $NETWORK_DEVICES for d in $NETWORK_DEVICES
do do
read ONLINE < $d/online read ONLINE < $d/online
if [ $ONLINE -ne 1 ]; then if [ $ONLINE -ne 1 ]; then
continue continue
fi fi
# determine interface name, if there (only for qeth and if # determine interface name, if there (only for qeth and if
# device is online) # device is online)
if [ -f $d/if_name ] if [ -f $d/if_name ]
then then
read ifname < $d/if_name read ifname < $d/if_name
elif [ -d $d/net ] elif [ -d $d/net ]
then then
ifname=$(ls $d/net/) ifname=$(ls $d/net/)
fi fi
[ -n "$ifname" ] && break [ -n "$ifname" ] && break
done done
echo -n "$ifname" echo -n "$ifname"
} }
# setup s390 znet cmdline # setup s390 znet cmdline