File: fuse-utils.prerm

package info (click to toggle)
fuse 2.2.1-4sarge2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,724 kB
  • ctags: 1,059
  • sloc: sh: 8,822; ansic: 7,331; makefile: 213
file content (37 lines) | stat: -rw-r--r-- 503 bytes parent folder | download
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
#!/bin/bash -e

test $DEBIAN_SCRIPT_DEBUG && set -v -x

CONFFILE=/etc/default/fuse-utils

is_true() {
  case $1 in
    1|true|True|TRUE|y*|Y*) return 0;;
    *) return 1;;
  esac
}

case $1 in
  remove|deconfigure)

    [[ -f $CONFFILE ]] && . $CONFFILE

    if is_true $FUSE_GROUPDELETE && [[ -n $FUSE_GROUP ]]; then
      delgroup $FUSE_GROUP || true
    fi
  ;;

  failed-upgrade|upgrade)
  ;;

  *)
    echo "prerm called with unknown argument \`$1'" >&2
    exit 1
  ;;
esac

#DEBHELPER#

exit 0