diff options
author | James Meyer <james.meyer@operamail.com> | 2014-10-13 17:03:13 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2014-10-13 17:03:13 (GMT) |
commit | 2e7abbab92370a4a99ad68e460c476d02296e665 (patch) | |
tree | 1d6273195dd2c4f2e22d71d26a486cbfaa77052c /build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/archiso/functions | |
parent | 8bef8020a022c52a8d1d4bb373b5c8cdc256284f (diff) | |
download | linhes_dev-2e7abbab92370a4a99ad68e460c476d02296e665.zip |
archiso-19 + configs for linhes iso.
This provides archiso-19 but doesn't install it inside the dev env.
Diffstat (limited to 'build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/archiso/functions')
-rw-r--r-- | build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/archiso/functions | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/archiso/functions b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/archiso/functions new file mode 100644 index 0000000..9fffdcb --- /dev/null +++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/archiso/functions @@ -0,0 +1,20 @@ +# vim: set ft=sh: + +# 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. Also prints value passed as <default> +# +kernel_cmdline () +{ + for param in $(/bin/cat /proc/cmdline); do + case "${param}" in + $1=*) echo "${param##*=}"; return 0 ;; + $1) return 0 ;; + *) continue ;; + esac + done + [ -n "${2}" ] && echo "${2}" + return 1 +} |