Package: fuse-utils
Version: 2.7.4-1.1
Severity: wishlist
Tags: patch
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu ubuntu-patch jaunty

Hello,

in order to get a better plug'n'play behaviour, it would be nice if
the postinst would load the module and add it to /etc/modules, so that
it's there on boot. Otherwise the user always has to do that manually.

Thanks for considering,

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
--- fuse-2.7.4/debian/fuse-utils.postinst
+++ fuse-2.7.4/debian/fuse-utils.postinst
@@ -38,18 +38,24 @@
   fi
   
   chown root:fuse /etc/fuse.conf
   chmod 0640 /etc/fuse.conf
+
+  # 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
   ;;
 
   abort-upgrade|abort-remove|abort-deconfigure)

Attachment: signature.asc
Description: Digital signature

Reply via email to