home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh -e
-
- test $DEBIAN_SCRIPT_DEBUG && set -v -x
-
- case "$1" in
- configure|upgrade)
-
- test -f /etc/default/fuse-utils && rm -f /etc/default/fuse-utils;
-
- echo "creating fuse group..."
- getent group fuse >/dev/null || addgroup --system fuse
-
- if ! dpkg-statoverride --list /bin/fusermount >/dev/null; then
- chown root:root /bin/fusermount
- chmod 4755 /bin/fusermount
-
- fi
- chown root:fuse /etc/fuse.conf
- chmod 0640 /etc/fuse.conf
-
- if dpkg --compare-versions "$2" lt 2.6.5-1ubuntu3; then
- dpkg-statoverride --remove /usr/bin/fusermount || true
- fi
-
- # try to load the module
- lsmod | grep -q fuse > /dev/null 2>&1 || modprobe fuse > /dev/null 2>&1 || echo "Unable to load fuse module, but continuing anyway; please reboot to enable fuse"
-
- # and make sure it's there after next reboot
- grep fuse /etc/modules > /dev/null 2>&1 || echo "fuse" >> /etc/modules
-
- if type update-initramfs >/dev/null 2>&1; then
- update-initramfs -u
- fi
- ;;
-
- abort-upgrade|abort-remove|abort-deconfigure)
- ;;
-
- *)
- echo "postinst called with unknown argument \`$1'" >&2
- exit 1
- ;;
- esac
-
-
-
- exit 0
-