Commit 90981fa2 authored by Gerardo Exequiel Pozzi's avatar Gerardo Exequiel Pozzi
Browse files

[syslinux-iso] fix regression in kernel_cmdline helper function

Fix FS#24203.

Regression introduced at commit b171f8f1



Signed-off-by: default avatarGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
parent 91b63fcd
# vim: set ft=sh: # vim: set ft=sh:
# kernel_cmdline <param> # kernel_cmdline <param> <default>
# Looks for a parameter on the kernel's boot-time command line. # Looks for a parameter on the kernel's boot-time command line.
# #
# returns: 0 if param was found. Also prints its value if it was a K=V param. # returns: 0 if param was found. Also prints its value if it was a K=V param.
# 1 if it was not # 1 if it was not. Also prints value passed as <default>
# #
kernel_cmdline () kernel_cmdline ()
{ {
...@@ -15,6 +15,6 @@ kernel_cmdline () ...@@ -15,6 +15,6 @@ kernel_cmdline ()
*) continue ;; *) continue ;;
esac esac
done done
[ -n "${2}" ] && echo "${2}"
return 1 return 1
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment