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