diff options
author | Jonathan Bauer | 2018-04-10 12:28:39 +0200 |
---|---|---|
committer | Jonathan Bauer | 2018-04-10 12:28:39 +0200 |
commit | 9592666343f00968166d8fafb0625a09c0da1fc9 (patch) | |
tree | 14a244b2ddfc5015eaa9689a4ef7d2969332b57a /core/modules/slx-issue | |
parent | [slx-issue] externalize /etc/issue generation (diff) | |
download | mltk-9592666343f00968166d8fafb0625a09c0da1fc9.tar.gz mltk-9592666343f00968166d8fafb0625a09c0da1fc9.tar.xz mltk-9592666343f00968166d8fafb0625a09c0da1fc9.zip |
[slx-issue] support for SLX_PXE_NETIF
Diffstat (limited to 'core/modules/slx-issue')
-rwxr-xr-x | core/modules/slx-issue/data/opt/openslx/scripts/openslx-create_issue | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/modules/slx-issue/data/opt/openslx/scripts/openslx-create_issue b/core/modules/slx-issue/data/opt/openslx/scripts/openslx-create_issue index c70e0356..e2c78b28 100755 --- a/core/modules/slx-issue/data/opt/openslx/scripts/openslx-create_issue +++ b/core/modules/slx-issue/data/opt/openslx/scripts/openslx-create_issue @@ -35,7 +35,9 @@ done < "$INFILE" > "$TMPFILE" player=$(< /etc/vmware/config grep -m1 '^product.version' | awk -F= '{print $2}') kernel=$(uname -r) system="$(dmidecode -s system-manufacturer | grep -vP "unknown|filled|^#") $(dmidecode -s system-product-name | grep -vP "unknown|filled|^#")" -linkspeed=$(cat /sys/class/net/eth0/speed) +# Support the boot interface name eventually saved as SLX_PXE_NETIF +# from the new dracut-based stage3, fallback to old eth0 if not set +linkspeed=$(cat /sys/class/net/${SLX_PXE_NETIF:-eth0}/speed) tmpstatus=$(grep -m1 ' /tmp ' /proc/mounts | awk '{print $3}') if [ -z "$tmpstatus" ] || [ "$tmpstatus" = "tmpfs" ]; then tmpstatus="RAMDISK" |