diff options
author | Simon Rettberg | 2022-09-09 16:15:15 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-09-09 16:15:15 +0200 |
commit | 3f0dab1b8ee31a604a0200b390723bd3cf467851 (patch) | |
tree | 4309ad5249888af1b4f948fd7e9b134ac8d75d1a | |
parent | [rootfs-stage31] Relax kernel mismatch check (diff) | |
download | mltk-3f0dab1b8ee31a604a0200b390723bd3cf467851.tar.gz mltk-3f0dab1b8ee31a604a0200b390723bd3cf467851.tar.xz mltk-3f0dab1b8ee31a604a0200b390723bd3cf467851.zip |
[system-uuid] Fix grep regex style option
-rwxr-xr-x | core/modules/system-uuid/data/bin/get-uuid | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/system-uuid/data/bin/get-uuid b/core/modules/system-uuid/data/bin/get-uuid index 0a03bbed..875dfd5e 100755 --- a/core/modules/system-uuid/data/bin/get-uuid +++ b/core/modules/system-uuid/data/bin/get-uuid @@ -28,10 +28,10 @@ else fi if [ -z "$UUID" ]; then if [ "${#MAC}" -ne 17 ]; then - MAC="$( grep -Eo '(?<=ipv4.if=)\S+' /proc/cmdline )" + MAC="$( grep -Po '(?<=ipv4.if=)\S+' /proc/cmdline )" fi if [ "${#MAC}" -ne 17 ]; then - MAC="$( grep -Eo '(?<=BOOTIF=01-)\S+' /proc/cmdline )" + MAC="$( grep -Po '(?<=BOOTIF=01-)\S+' /proc/cmdline )" fi if [ "${#MAC}" -ne 17 ]; then echo "Getting MAC from /proc/cmdline failed, using 'ip a'..." |