[devmon 1.1.7] support raid /dev/mda in partition detection #28
This commit is contained in:
parent
12a3cf4a0c
commit
7c5f44d968
|
@ -6,6 +6,7 @@
|
|||
autogen.sh ensure pot not deleted
|
||||
improve denied 94 msg #24
|
||||
default fmask=0133 for vfat ntfs msdos umsdos #25
|
||||
[devmon 1.1.7] support raid /dev/mda in partition detection #28
|
||||
0.4.1 2013-03-17:
|
||||
update Russian translation
|
||||
added translation files to transifex.com
|
||||
|
|
10
src/devmon
10
src/devmon
|
@ -15,7 +15,7 @@ defaultmountoptions="noexec,nosuid,nodev,noatime"
|
|||
help()
|
||||
{
|
||||
cat << EOF
|
||||
devmon version 1.1.6 (distributed with udevil)
|
||||
devmon version 1.1.7 (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
|
||||
|
@ -714,7 +714,7 @@ mountalldrives()
|
|||
# Mount removable drives, no exec
|
||||
IFSOLD="$IFS"
|
||||
IFS=$'\n'
|
||||
partlist=`grep " sd[a-z0-9]*$" /proc/partitions | sed 's/.* \(sd[a-z0-9]*\)/\1/'`
|
||||
partlist=`grep " [ms]d[a-z0-9]*$" /proc/partitions | sed 's/.* \([ms]d[a-z0-9]*\)/\1/'`
|
||||
for p in $partlist; do
|
||||
if ( ignoredevice "/dev/$p" ); then
|
||||
continue
|
||||
|
@ -748,8 +748,8 @@ trapexit()
|
|||
IFSOLD="$IFS"
|
||||
IFS=$'\n'
|
||||
uerr=0
|
||||
partlist=`grep " sd[a-z0-9]*$" /proc/partitions | \
|
||||
sed 's/.* \(sd[a-z0-9]*\)/\1/'`
|
||||
partlist=`grep " [ms]d[a-z0-9]*$" /proc/partitions | \
|
||||
sed 's/.* \([ms]d[a-z0-9]*\)/\1/'`
|
||||
for p in $partlist; do
|
||||
if ( ignoredevice "/dev/$p" ); then
|
||||
continue
|
||||
|
@ -793,7 +793,7 @@ if (( mountmode != 0 )); then
|
|||
IFS=$'\n'
|
||||
if (( unmountrem == 1 )); then
|
||||
# Unmount All Removable Drives
|
||||
partlist=`grep " sd[a-z0-9]*$" /proc/partitions | sed 's/.* \(sd[a-z0-9]*\)/\1/'`
|
||||
partlist=`grep " [ms]d[a-z0-9]*$" /proc/partitions | sed 's/.* \([ms]d[a-z0-9]*\)/\1/'`
|
||||
msgtitle="devmon unmount"
|
||||
else
|
||||
# Unmount Recent
|
||||
|
|
Loading…
Reference in New Issue
Block a user