File: config

package info (click to toggle)
dist 3.70-31etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 3,440 kB
  • ctags: 249
  • sloc: perl: 4,194; sh: 4,097; cpp: 208; makefile: 12; ansic: 4
file content (80 lines) | stat: -rw-r--r-- 1,963 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/bin/sh
#                               -*- Mode: Sh -*- 
# config --- 
# Author           : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) 
# Created On       : Fri Oct 31 21:53:31 2003
# Created On Node  : glaurung.green-gryphon.com
# Last Modified By : Manoj Srivastava
# Last Modified On : Tue Dec  2 21:36:50 2003
# Last Machine Used: glaurung.green-gryphon.com
# Update Count     : 13
# Status           : Unknown, Use with caution!
# HISTORY          : 
# Description      : 
# arch-tag: 1c40a2eb-f28c-41b5-a423-671be2e816ed
# 

case "$1" in
  configure)
    # Configure this package.  If the package must prompt the user for
    # information, do it here.
	if [ ! -e /etc/news/organization ]; then
	    if [ -e /usr/share/debconf/confmodule ]; then
		. /usr/share/debconf/confmodule
		db_capb
		ok=''
		# See if the old shared question still exists.
		if db_get share/news/organization; then
		    if [ "X$RET" != "X" ]; then
			ok=1
			break
		    fi
		fi
		while [ ! "$ok" ]; do
		    retval=$(db_input low  shared/news/organization)
		    if [ "$retval" = "30 question skipped" ]; then
			ok=1
		    fi
		    db_go || true
		    db_get shared/news/organization
		    if [ "X$RET" != "X" ]; then
			ok=1
			break
		    fi
		done
	    fi
	fi

    ;;
  reconfigure)
	if [ ! -e /etc/news/organization ]; then
	    if [ -e /usr/share/debconf/confmodule ]; then
		. /usr/share/debconf/confmodule
		db_capb
		ok=''
		# See if the old shared question still exists.
		if db_get share/news/organization; then
		    if [ "X$RET" != "X" ]; then
			ok=1
			break
		    fi
		fi
		while [ ! "$ok" ]; do
		    retval=$(db_input low  shared/news/organization)
		    if [ "$retval" = "30 question skipped" ]; then
			ok=1
		    fi
		    db_go || true
		    db_get shared/news/organization
		    if [ "X$RET" != "X" ]; then
			ok=1
			break
		    fi
		done
	    fi
	fi
    ;;
  *) echo "$0: didn't understand being called with \`$1'" 1>&2
     exit 0;;
esac