summaryrefslogtreecommitdiff
path: root/default-config/etc/archiso/functions
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-09-12 15:42:58 +0000
committerAaron Griffin <aaron@archlinux.org>2006-09-12 15:42:58 +0000
commit5c56aefa6bbb272dfb6f402a19d0cfc682e89ce5 (patch)
treed9c9bb86a0cae693f6041d85c5410a8636ecbc5f /default-config/etc/archiso/functions
parent7e3a0aab547917ba3066a015f4ec4cc8e87c505f (diff)
downloadarchiso32-5c56aefa6bbb272dfb6f402a19d0cfc682e89ce5.tar.xz
git-svn-id: http://phraktured.net/archiso@7 00a9fe69-e71b-0410-bb23-df0e5024db41
Diffstat (limited to 'default-config/etc/archiso/functions')
-rw-r--r--default-config/etc/archiso/functions11
1 files changed, 11 insertions, 0 deletions
diff --git a/default-config/etc/archiso/functions b/default-config/etc/archiso/functions
new file mode 100644
index 0000000..bf224dc
--- /dev/null
+++ b/default-config/etc/archiso/functions
@@ -0,0 +1,11 @@
+# vim: set ft=sh:
+cmdline_param ()
+{
+ while param do;
+ case "${param}" in
+ $1=*) echo "${param##*=}"; break ;;
+ *) continue ;;
+ esac
+ done < read /proc/cmdline
+ echo "${2}"
+}