This file is indexed.

/usr/lib/plainbox-providers-1/checkbox/bin/network_printer_test is in plainbox-provider-checkbox 0.3-2.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash

usage() {
    cat <<EOU

${0} - add a network printer and send a test page

 Usage: ${0} [ -p <printer> ] [ -s <server> ]

    -p <printer> -- specify a printer to use, by name
    -s <server>  -- specify a network server to use

 Note: this script expects printers over the IPP protocol only.

EOU
}

while [ $# -gt 0 ]
do
    case "$1" in
        -p)
            if echo ${2} | grep -q -c '^-'; then
                usage
                exit 1
            fi
            printer=${2}
            shift
            ;;
        -s)
            if echo ${2} | grep -q -c '^-'; then
                usage
                exit 1
            fi
            server=${2}
            shift
            ;;
        --usage)
            usage
            exit 1
            ;;
    esac
    shift
done

if [ -z $server ]; then
    echo "Nothing to do with no server defined. (See $0 --usage)"
    exit 0
fi

printer=${printer:-PDF}

lpadmin -E -v ipp://${server}/printers/${printer}
cupsenable ${printer}
cupsaccept ${printer}

lsb_release -a | lp -t "lsb_release" -d ${printer}