File: config

package info (click to toggle)
solid-pop3d 0.15-26
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,712 kB
  • sloc: ansic: 6,364; sh: 2,084; makefile: 487
file content (22 lines) | stat: -rwxr-xr-x 406 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
22
#!/bin/sh
# vim:ft=sh
#
set -e 

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

CONFIGFILE=/etc/default/solid-pop3d

RUN_MODE=inetd
[ -f "$CONFIGFILE" ] && . "$CONFIGFILE"

# preserve user changes in the config file
if [ "x$RUN_MODE" = "xdaemon" ] ; then
	db_set solid-pop3d/run_mode daemon
else
	db_set solid-pop3d/run_mode inetd
fi

db_input medium solid-pop3d/run_mode || true
db_go || true