File: config

package info (click to toggle)
fdutils 5.5-20060227-6
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,424 kB
  • sloc: ansic: 6,291; sh: 3,082; makefile: 251; 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