summaryrefslogtreecommitdiff
path: root/configs/default/overlay/etc/archiso/functions
blob: fdd48f4aea8c43b663e38a63d66cb240586dbe8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# 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}"
}