summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2020-07-23 17:52:21 +0200
committerJonathan Bauer2020-07-23 17:52:21 +0200
commit9838da8b9efd243a0810ad92b0bd0bd3d0ae294c (patch)
tree63603539c54c9646d97a241fbce45230d3227ba9
parent[hardware-stats] Use bash for better math (diff)
downloadmltk-9838da8b9efd243a0810ad92b0bd0bd3d0ae294c.tar.gz
mltk-9838da8b9efd243a0810ad92b0bd0bd3d0ae294c.tar.xz
mltk-9838da8b9efd243a0810ad92b0bd0bd3d0ae294c.zip
[slx-issue] relax regex for netboot version
-rwxr-xr-xcore/modules/slx-issue/data/opt/openslx/scripts/openslx-create_issue2
1 files changed, 1 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 9639d67e..befe268b 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
@@ -65,7 +65,7 @@ fi
tmpstatus="$(slx-tools fs_path_space /tmp | awk '{printf "%.1f", $2 / 1024 / 1024}')GiB ($tmpstatus)"
# netboot version from cmdline, e.g. boot/bwlp/minilinux/1 to "MiniLinux 1"
-netboot="$(grep -oP '(?<=slxbase=boot/bwlp/)\S+' /proc/cmdline | tr '/' ' ')"
+netboot="$(grep -oP '(?<=slxbase=boot/)\S+' /proc/cmdline | tr '/' ' ')"
# capitalize 'm' & 'l'
netboot="${netboot^m}"
netboot="${netboot^^l}"