File: config

package info (click to toggle)
lprng 3.8.B-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,344 kB
  • sloc: ansic: 35,071; sh: 3,040; perl: 1,896; makefile: 380
file content (21 lines) | stat: -rw-r--r-- 451 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e

# source debconf library.
. /usr/share/debconf/confmodule

# lpq, lprm lpr setuid?
db_input low lprng/setuid_tools || true
db_go

# Check for default file, if it is there then set the debconf value
default_start_lpd="true"
if [ -f /etc/default/lprng ]; then
    grep -q 'START_LPD=yes' /etc/default/lprng || default_start_lpd="false"
    db_set lprng/start_lpd $default_start_lpd
fi
db_input medium lprng/start_lpd || true
db_go