summaryrefslogtreecommitdiff
path: root/recipes-graphics/wayland/weston-init.bbappend
blob: c92a3c6eca0e2d8cc27e1eadc136faf58746aa7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
INI_UNCOMMENT_ASSIGNMENTS_append_mx8 = " \
    use-g2d=1 \
"


uncomment() {
    # already uncommented, do nothing
    if ! (grep "^$1" $2); then
        if ! (grep "^#$1" $2); then
            bbfatal "Commented setting '#$1' not found in file $2"
        fi
        sed -i -e 's,^#'"$1"','"$1"',g' $2
    fi
}