[Usbmount-commit] r69 - usbmount/trunk
Rogério Brito
rbrito-guest at alioth.debian.org
Mon Oct 26 17:48:19 UTC 2009
Author: rbrito-guest
Date: 2009-10-26 17:48:19 +0000 (Mon, 26 Oct 2009)
New Revision: 69
Modified:
usbmount/trunk/usbmount
Log:
Delete trailing whitespace.
Modified: usbmount/trunk/usbmount
===================================================================
--- usbmount/trunk/usbmount 2009-10-26 17:47:57 UTC (rev 68)
+++ usbmount/trunk/usbmount 2009-10-26 17:48:19 UTC (rev 69)
@@ -17,7 +17,7 @@
exec > /dev/null 2>&1
######################################################################
-# Auxiliary functions
+# Auxiliary functions
# Log a string via the syslog facility.
log()
@@ -136,11 +136,11 @@
if [ -n "$MOUNTOPTIONS" ]; then
options="$MOUNTOPTIONS${options:+,$options}"
fi
-
+
# Mount the filesystem.
log info "executing command: mount -t$fstype ${options:+-o$options} $DEVNAME $mountpoint"
mount "-t$fstype" "${options:+-o$options}" "$DEVNAME" "$mountpoint"
-
+
# Determine vendor and model.
vendor=
if [ -r "/sys$DEVPATH/device/vendor" ]; then
@@ -153,7 +153,7 @@
vendor="`cat \"/sys$DEVPATH/../device/../manufacturer\"`"
fi
vendor="$(echo "$vendor" | sed 's/^[[:space:]]\+//; s/[[:space:]]\+$//')"
-
+
model=
if [ -r "/sys$DEVPATH/device/model" ]; then
model="`cat \"/sys$DEVPATH/device/model\"`"
@@ -165,7 +165,7 @@
model="`cat \"/sys$DEVPATH/../device/../product\"`"
fi
model="$(echo "$model" | sed 's/^[[:space:]]\+//; s/[[:space:]]\+$//')"
-
+
# Run hook scripts; ignore errors.
export UM_DEVICE="$DEVNAME"
export UM_MOUNTPOINT="$mountpoint"
More information about the Usbmount-commit
mailing list