summarylogtreecommitdiffstats
path: root/brother-dcp165c.install
blob: 5f06b2e99d04823de37ff61db2a3d855c5f935a8 (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
post_install() {
    # lpr
    /usr/local/Brother/Printer/dcp165c/inf/setupPrintcapij dcp165c -i
    
    # cupswrapper
    /usr/local/Brother/Printer/dcp165c/cupswrapper/cupswrapperdcp165c
    
    systemctl restart cups.service
}

post_upgrade() {
    /bin/true
}

pre_remove() {
    # lpr
    /usr/local/Brother/Printer/dcp165c/inf/setupPrintcapij dcp165c -e
    
    # cupswrapper
    /usr/local/Brother/Printer/dcp165c/cupswrapper/cupswrapperdcp165c -e
}

op=$1
shift

$op "$@"