6f9cdf5958
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
13 lines
230 B
Bash
13 lines
230 B
Bash
# 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}"
|
|
}
|