13 lines
230 B
Plaintext
13 lines
230 B
Plaintext
|
# 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}"
|
||
|
}
|