mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
dbginfo.sh: use POSIX uname options
uname -i is not defined POSIX and will fail on some linux distributions Reviewed-by: Michael Storzer <mstorzer@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
0ed6c1ccde
commit
c47071815b
@@ -20,7 +20,7 @@ readonly FULLPATHSCRIPT="$(readlink -f "${0}")"
|
||||
readonly DATETIME="$(date +%Y-%m-%d-%H-%M-%S 2>/dev/null)"
|
||||
readonly DOCKER=$(if type docker >/dev/null 2>&1; then echo "YES"; else echo "NO"; fi)
|
||||
readonly DUMP2TAR_OK=$(if type dump2tar >/dev/null 2>&1; then echo "YES"; else echo "NO"; fi)
|
||||
readonly HW="$(uname -i 2>/dev/null)"
|
||||
readonly HW="$(uname -m 2>/dev/null)"
|
||||
readonly IFS_ORI="${IFS}"
|
||||
# retrieve and split kernel version
|
||||
readonly KERNEL_BASE="$(uname -r 2>/dev/null)"
|
||||
|
||||
Reference in New Issue
Block a user