Package: usbmount
Version: 0.0.20
Severity: normal
Tags: patch

see http://git.katzien.de/usbmount.git for a updated usbmount and 
usbmount.conf file or attached patches.

Kind regards,

Jan

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i586)

Kernel: Linux 2.6.32-5-486
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages usbmount depends on:
ii  lockfile-progs                0.1.15     Programs for locking and unlocking
ii  udev                          160-1      /dev/ and hotplug management daemo
ii  util-linux                    2.17.2-3.1 Miscellaneous system utilities

Versions of packages usbmount recommends:
pn  pmount                        <none>     (no description available)

usbmount suggests no packages.

-- Configuration Files:
/etc/usbmount/usbmount.conf changed [not included]

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/share/usbmount/usbmount (from usbmount package)
>From c30cd309d06a9f07d1d2cf3f06bc8b94f7764140 Mon Sep 17 00:00:00 2001
From: Jan Schulz <j...@gmx.net>
Date: Sun, 25 Jul 2010 23:33:05 +0200
Subject: [PATCH 1/2] Add ntfs-3g as a configureable driver for ntfs filesystems

---
 usbmount      |   13 +++++++++++++
 usbmount.conf |    5 +++++
 2 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/usbmount b/usbmount
index 88ae01b..6e9f413 100755
--- a/usbmount
+++ b/usbmount
@@ -48,6 +48,7 @@ MOUNTPOINTS=
 FILESYSTEMS=
 MOUNTOPTIONS=
 FS_MOUNTOPTIONS=
+USE_NTFS3G=
 VERBOSE=no
 
 if [ -r /etc/usbmount/usbmount.conf ]; then
@@ -134,6 +135,11 @@ if [ "$1" = add ]; then
                    options="$MOUNTOPTIONS${options:+,$options}"
                fi
 
+               # use ntfs3g fuse driver is user asked for it
+                if test $fstype == "ntfs" && expr "$USE_NTFS3G" : "[yY]" > 
/dev/null; then
+                    $fstype = "ntfs-3g"
+                fi
+
                # Mount the filesystem.
                log info "executing command: mount -t$fstype 
${options:+-o$options} $DEVNAME $mountpoint"
                mount "-t$fstype" "${options:+-o$options}" "$DEVNAME" 
"$mountpoint"
@@ -181,6 +187,13 @@ if [ "$1" = add ]; then
     fi
 elif [ "$1" = remove ]; then
 
+    # if we utilize ntfs-3g, we need to add the fuseblk fstype to allow 
+    # proper unmounting
+    if [ `expr "$USE_NTFS3G" : "[yY]"` -eq "1" ]; then
+        FILESYSTEMS="$FILESYSTEMS fuseblk"
+    fi
+
+
     # A block or partition device has been removed.
     # Test if it is mounted.
     while read device mountpoint fstype remainder; do
diff --git a/usbmount.conf b/usbmount.conf
index 97f7ccc..8acd526 100644
--- a/usbmount.conf
+++ b/usbmount.conf
@@ -16,6 +16,11 @@ MOUNTPOINTS="/media/usb0 /media/usb1 /media/usb2 /media/usb3
 # contain a filesystem type which is in this list.
 FILESYSTEMS="vfat ext2 ext3 ext4 hfsplus"
 
+# Use the ntfs3g driver for ntfs filesystems.
+# You need to add "ntfs" the list if FILESYSTEMS and also install the
+# ntfs-3g package!
+USE_NTFS3G="no"
+
 #############################################################################
 # WARNING!                                                                  #
 #                                                                           #
-- 
1.7.1

>From c60df6c2bab4a6c6e6411c3b78048376bb5e85ff Mon Sep 17 00:00:00 2001
From: Jan Schulz <j...@gmx.net>
Date: Sun, 25 Jul 2010 23:35:00 +0200
Subject: [PATCH 2/2] Add ntfs-3g to Recommends:

---
 debian/control |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/debian/control b/debian/control
index c7e98a1..01e75a6 100644
--- a/debian/control
+++ b/debian/control
@@ -13,7 +13,7 @@ Homepage: http://usbmount.alioth.debian.org/
 Package: usbmount
 Architecture: all
 Depends: udev, lockfile-progs, util-linux (>> 2.16), ${misc:Depends}
-Recommends: pmount
+Recommends: pmount, ntfs-3g
 Description: automatically mount and unmount USB mass storage devices
  This package automatically mounts USB mass storage devices (typically
  USB pens) when they are plugged in, and unmounts them when they are
-- 
1.7.1

Reply via email to