File: config

package info (click to toggle)
solid-pop3d 0.15-23
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 896 kB
  • ctags: 448
  • sloc: ansic: 6,085; sh: 4,682; makefile: 527
file content (22 lines) | stat: -rw-r--r-- 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