Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/configs/syslinux-iso/overlay/etc
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2011-05-10 20:43:53 -0300
committerGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2011-05-10 20:43:53 -0300
commit90981fa285fd27ea3004c64f9d3d6ead19e86a7f (patch)
treefc4fb6f3f142a385028f9dc0b430309c14ae9e45 /configs/syslinux-iso/overlay/etc
parent91b63fcd05731d3e92f948f8e81b8388537faa04 (diff)
[syslinux-iso] fix regression in kernel_cmdline helper function
Fix FS#24203. Regression introduced at commit b171f8f11fdc04a22c7b8f3ff3b9dd164986daae Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Diffstat (limited to 'configs/syslinux-iso/overlay/etc')
-rw-r--r--configs/syslinux-iso/overlay/etc/archiso/functions6
1 files changed, 3 insertions, 3 deletions
diff --git a/configs/syslinux-iso/overlay/etc/archiso/functions b/configs/syslinux-iso/overlay/etc/archiso/functions
index 02b41cf..9fffdcb 100644
--- a/configs/syslinux-iso/overlay/etc/archiso/functions
+++ b/configs/syslinux-iso/overlay/etc/archiso/functions
@@ -1,10 +1,10 @@
# vim: set ft=sh:
-# kernel_cmdline <param>
+# kernel_cmdline <param> <default>
# 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.
-# 1 if it was not
+# 1 if it was not. Also prints value passed as <default>
#
kernel_cmdline ()
{
@@ -15,6 +15,6 @@ kernel_cmdline ()
*) continue ;;
esac
done
-
+ [ -n "${2}" ] && echo "${2}"
return 1
}