File: ferm.config

package info (click to toggle)
ferm 2.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,828 kB
  • sloc: perl: 2,759; sh: 150; makefile: 107
file content (21 lines) | stat: -rw-r--r-- 518 bytes parent folder | download | duplicates (7)
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

. /usr/share/debconf/confmodule

db_version 2.0
db_capb backup

if ! test -f /etc/default/ferm || ! grep -q ^ENABLED= /etc/default/ferm; then
    db_input high ferm/enable || true
    db_go || true
fi

# load configuration file if it exists and read
# value of ENABLED into Debconf database
if test -e /etc/default/ferm && grep -q '^ENABLED=' /etc/default/ferm; then
       . /etc/default/ferm || true

       # Store values from config file into debconf db.
       db_set ferm/enable "$ENABLED"
fi