diff options
author | Aaron Griffin <aaron@archlinux.org> | 2006-09-28 02:15:25 +0000 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2006-09-28 02:15:25 +0000 |
commit | c464db595165a847e5fc81a57133f68a9c2e0ef8 (patch) | |
tree | 6419418b51e45d275e5d3ccf0a61dc3ae0697131 /default-config/etc/archiso/functions | |
parent | 59ddc5be61a1ee5dadc32c8a2255931d62bbce2a (diff) | |
download | archiso32-c464db595165a847e5fc81a57133f68a9c2e0ef8.tar.xz |
git-svn-id: http://phraktured.net/archiso@13 00a9fe69-e71b-0410-bb23-df0e5024db41
Diffstat (limited to 'default-config/etc/archiso/functions')
-rw-r--r-- | default-config/etc/archiso/functions | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/default-config/etc/archiso/functions b/default-config/etc/archiso/functions index 2972013..d668b4c 100644 --- a/default-config/etc/archiso/functions +++ b/default-config/etc/archiso/functions @@ -1,11 +1,13 @@ -# vim: set ft=sh:
-cmdline_param ()
-{
- while param do;
- case "${param}" in
- $1=*) echo "${param##*=}"; break ;;
- *) continue ;;
- esac
- echo "${2}"
- done < read /proc/cmdline
-}
+# vim: set ft=sh: + +cmdline_param () +{ + read cmdline < /proc/cmdline + for param in ${cmdline}; do + case "${param}" in + $1=*) echo "${param##*=}"; break ;; + *) continue ;; + esac + done + [ -n "${2}" ] && echo "${2}" +} |