blob: 29443a66ad9da9f02542d3b6c89910c6bfac988d (
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
|
#!/bin/sh
set -e
# Debconf library
. /usr/share/debconf/confmodule
db_get cupsys/raw-print
OLD_RET=$RET
db_input low cupsys/raw-print || true
db_go
db_get cupsys/raw-print
if [ "$OLD_RET" != "$RET" ]; then
db_fset cupsys/raw-print changed true
fi
# remove parallel from PPC default
ARCH=`dpkg --print-architecture`
if [ "$ARCH" = "ppc" -o "$ARCH" = "ppc-none" ]; then
db_fget cupsys/backend seen
if [ "$RET" = "false" ]; then
db_set cupsys/backend "lpd, socket, usb"
fi
fi
db_input low cupsys/backend || true
db_go
|