[go: up one dir, main page]

File: cups.config

package info (click to toggle)
cups 1.3.8-1%2Blenny10
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 25,560 kB
  • ctags: 10,891
  • sloc: ansic: 110,555; cpp: 49,242; sh: 14,773; java: 6,278; makefile: 2,049; perl: 411; lisp: 232; python: 119; php: 28
file content (29 lines) | stat: -rw-r--r-- 541 bytes parent folder | download | duplicates (4)
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 "ipp, lpd, socket, usb"
  fi
fi

db_input low cupsys/backend || true
db_go