File: config

package info (click to toggle)
fdutils 5.5-20060227-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,160 kB
  • ctags: 678
  • sloc: ansic: 6,280; sh: 3,087; makefile: 298; sed: 4
file content (19 lines) | stat: -rw-r--r-- 429 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh

set -e

. /usr/share/debconf/confmodule

if [ -e /etc/fdmount.conf ]; then
    if grep -q '^is_suid=y.*$' /etc/fdmount.conf; then
	db_set fdutils/fdmount_setuid true
    else
	db_set fdutils/fdmount_setuid false
    fi
fi

if [ "$1" = reconfigure ] || [ ! -e /etc/fdmount.conf ] \
    || dpkg --compare-versions "$2" lt 5.2.0.1998-07-01-3; then
    db_input medium fdutils/fdmount_setuid || true
    db_go || true
fi