summaryrefslogtreecommitdiff
path: root/configs/syslinux-iso/overlay/etc/archiso/functions
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-11-25 10:40:07 -0800
committerAaron Griffin <aaronmgriffin@gmail.com>2009-11-30 15:14:26 -0800
commit246a00412bcf15feedf6320fe10de6e545517b89 (patch)
tree94377634c0fd0f78557b79e52da470070e261966 /configs/syslinux-iso/overlay/etc/archiso/functions
parentf77ddc0e9ce71eced048139e51bf9540883fffcc (diff)
downloadarchiso32-246a00412bcf15feedf6320fe10de6e545517b89.tar.xz
Initial commit of syslinux based iso config
Includes vesamenu config... needs testing Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'configs/syslinux-iso/overlay/etc/archiso/functions')
-rw-r--r--configs/syslinux-iso/overlay/etc/archiso/functions12
1 files changed, 12 insertions, 0 deletions
diff --git a/configs/syslinux-iso/overlay/etc/archiso/functions b/configs/syslinux-iso/overlay/etc/archiso/functions
new file mode 100644
index 0000000..fdd48f4
--- /dev/null
+++ b/configs/syslinux-iso/overlay/etc/archiso/functions
@@ -0,0 +1,12 @@
+# vim: set ft=sh:
+
+cmdline_param ()
+{
+ for param in ${CMDLINE}; do
+ case "${param}" in
+ $1=*) echo "${param##*=}"; return ;;
+ *) continue ;;
+ esac
+ done
+ [ -n "${2}" ] && echo "${2}"
+}