mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
dbginfo.sh: remove brakets on lsqeth device list
in customer situation we found lsqeth listing devices like: Device name : (unnamed net_device) Device name : enc2000 Device name : enc3000 - the braket around the "unnamed" device is braking the function call and leads to stop the dbginfo.sh script. - this patch removes brakets > the functions call works and call of osaoat will report an unknown device instead of braking the dbginfo.sh script Reviewed-by: Mario Held <mario.held@de.ibm.com> Signed-off-by: Joern Siglen <siglen@de.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
d9034b01f1
commit
6895a71cc4
@@ -910,7 +910,8 @@ collect_osaoat() {
|
||||
local network_device
|
||||
|
||||
network_devices=$(lsqeth 2>/dev/null | grep "Device name" \
|
||||
| sed 's/D.*:[[:space:]]*\([^[:space:]]*\)[[:space:]]\+/\1/g')
|
||||
| sed 's/D.*:[[:space:]]*\([^[:space:]]*\)[[:space:]]\+/\1/g' \
|
||||
| sed 's/[()]//g' )
|
||||
if type qethqoat >/dev/null; then
|
||||
if test -n "${network_devices}"; then
|
||||
pr_collect_output "osa oat"
|
||||
|
||||
Reference in New Issue
Block a user