From e290caa7d98d2238e40e35f22fee95e57ed09119 Mon Sep 17 00:00:00 2001 From: IgnorantGuru Date: Sun, 26 Apr 2015 10:15:46 -0600 Subject: [PATCH] [devmon 1.1.8] fix no error popup on --unmount-removable #42 --- ChangeLog | 1 + src/devmon | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4b21a00..b073690 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 0.4.3+ udevil.conf use nonempty option for exfat #52 + [devmon 1.1.8] fix no error popup on --unmount-removable #42 0.4.3 2013-12-09: fix default udevil.conf allowed_options missing fmask=0133 #35 0.4.2 2013-12-04: diff --git a/src/devmon b/src/devmon index 6c63f8e..74d3fcd 100755 --- a/src/devmon +++ b/src/devmon @@ -15,7 +15,7 @@ defaultmountoptions="noexec,nosuid,nodev,noatime" help() { cat << EOF -devmon version 1.1.7 (distributed with udevil) +devmon version 1.1.8 (distributed with udevil) Automounts and unmounts optical and removable drives Requires: udevil bash>=4 Also Recommended: eject spacefm|zenity Optional: udisks v1 may be substituted for udevil @@ -580,14 +580,14 @@ mountdev() # $1=device [$2=label] [$3=devtype or fstype] unmountdev() # $1=device { if [ "$mount_cmd" = "$udisks2" ]; then - uerrmsg=`$mount_cmd unmount -b $1 2>&1` echo "devmon: $mount_cmd unmount -b $1" + uerrmsg=`$mount_cmd unmount -b $1 2>&1` elif [ "$mount_cmd" = "$pmount" ]; then - uerrmsg=`pumount $1 2>&1` echo "devmon: pumount $1" + uerrmsg=`pumount $1 2>&1` else - uerrmsg=`$mount_cmd --unmount $1 2>&1` echo "devmon: $mount_cmd --unmount $1" + uerrmsg=`$mount_cmd --unmount $1 2>&1` fi umounterr="$?" if [ "$mount_cmd" = "$udisks1" ] && [ "$uerrmsg" != "" ]; then