summarylogtreecommitdiffstats
path: root/backlight-openrc.install
blob: 7c98fcf1a518c6cd5e3ce1a511690195d14c7c5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
## arg 1:  the new package version
pre_install() {
    cat /dev/null > /dev/null
}

## arg 1:  the new package version
post_install() {
    echo -e "\nRemember to add the service to the system startup with:"
    echo -e "\t'rc-update add backlight boot'"
}

## arg 1:  the new package version
## arg 2:  the old package version
pre_upgrade() {
    cat /dev/null > /dev/null	
}

## arg 1:  the new package version
## arg 2:  the old package version
post_upgrade() {
    cat /dev/null > /dev/null
}

## arg 1:  the old package version
pre_remove() {
    rc-update del backlight -a > /dev/null 2&>1
    return 0
}

## arg 1:  the old package version
post_remove() {
#    echo -e "\nRemember to remove the service to the system startup with:"
#    echo -e "\t'rc-update del backlight boot'"
    cat /dev/null > /dev/null
}