[go: up one dir, main page]

File: cups.config

package info (click to toggle)
cups 1.7.5-11
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 35,968 kB
  • sloc: ansic: 139,321; cpp: 8,582; makefile: 3,107; sh: 2,217; python: 10
file content (29 lines) | stat: -rw-r--r-- 536 bytes parent folder | download | duplicates (2)
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