summarylogtreecommitdiffstats
path: root/brother-mfc-9335cdw.install
blob: 440c9c2e6d6780f510c8c8f170b2c09f1b63a05e (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
post_install() {
    post_upgrade;
}

post_upgrade() {
    /opt/brother/Printers/mfc9335cdw/cupswrapper/cupswrappermfc9335cdw > /dev/null
    if [ "$?" -eq 0 ]; then
        # printf "\033[1m\033[32m\x3d\x3d\x3e\033\1330m"
        printf "\033[1m\033[32m\x3d\x3d\x3e\033\1330m Done. The printer should be visible now via "
        printf "the CUPS web interface (http://localhost:631).\n"
        printf "\033[1m\033[32m\x3d\x3d\x3e\033\1330m Make sure org.cups.cupsd.service is enabled "
        printf "and started, in order for printing to work.\n"
        printf "\033[1m\033[32m\x3d\x3d\x3e\033\1330m If the scanner is connected wirelessly, make "
        printf "sure to configure it with brsaneconfig4, which will need to be installed.\n"
        printf "\033[1m\033[32m\x3d\x3d\x3e\033\1330m If scanning is segfaulting, try setting the "
        printf "scan mode to '24bit Color' in your scanning application.\n"
        printf "\033[1m\033[32m\x3d\x3d\x3e\033\1330m For the touchscreen/keypad on the scanner to "
        printf "work, brscan-skey.service will need to be enabled and started, and its "
        printf "corresponding package installed. Note that I, the package maintainer, have yet to "
        printf "get this working.\n"
    else
        printf "\033[1m\032[32m\x3d\x3d\x3e\033\1330m Something went wrong...\n"
    fi
}