Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/configs/default/overlay/etc/archiso/functions
diff options
context:
space:
mode:
Diffstat (limited to 'configs/default/overlay/etc/archiso/functions')
-rw-r--r--configs/default/overlay/etc/archiso/functions12
1 files changed, 12 insertions, 0 deletions
diff --git a/configs/default/overlay/etc/archiso/functions b/configs/default/overlay/etc/archiso/functions
new file mode 100644
index 0000000..fdd48f4
--- /dev/null
+++ b/configs/default/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}"
+}