summarylogtreecommitdiffstats
path: root/intelbacklight-git.install
blob: 860fc09cab39178571de3f9a9a813486ec3af488 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
post_install() {
    getent group backlight >/dev/null 2>&1 ||  groupadd backlight &>/dev/null

    chown root:backlight usr/bin/intelbacklight
    chmod 754 usr/bin/intelbacklight
    chmod u+s usr/bin/intelbacklight
    echo -e "############\n#\n# NOTE: To run intelbacklight as normal user you have to add yourself into the backlight group\n#\n#############"

}

post_upgrade() {
    getent group backlight >/dev/null 2>&1 ||  groupadd backlight &>/dev/null

    chown root:backlight usr/bin/intelbacklight
    chmod 754 usr/bin/intelbacklight
    chmod u+s usr/bin/intelbacklight
}

post_remove() {
    if getent group backlight >/dev/null 2>&1; then
        groupdel backlight
    fi
}