mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
lockfile-remove for fstab check
This commit is contained in:
parent
759126414e
commit
9a95a046c4
1 changed files with 2 additions and 0 deletions
|
@ -129,9 +129,11 @@ if [ "$1" = add ]; then
|
||||||
# Try to use specifications in /etc/fstab to skip.
|
# Try to use specifications in /etc/fstab to skip.
|
||||||
if egrep -q "^[[:blank:]]*$DEVNAME" /etc/fstab; then
|
if egrep -q "^[[:blank:]]*$DEVNAME" /etc/fstab; then
|
||||||
log debug "skipping /$DEVNAME exit"
|
log debug "skipping /$DEVNAME exit"
|
||||||
|
lockfile-remove /var/run/usbmount/.mount
|
||||||
exit
|
exit
|
||||||
elif grep -q "^[[:blank:]]*UUID=$UUID" /etc/fstab; then
|
elif grep -q "^[[:blank:]]*UUID=$UUID" /etc/fstab; then
|
||||||
log debug "skipping $UUID"
|
log debug "skipping $UUID"
|
||||||
|
lockfile-remove /var/run/usbmount/.mount
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
log debug "/$DEVNAME contains filesystem type $FSTYPE"
|
log debug "/$DEVNAME contains filesystem type $FSTYPE"
|
||||||
|
|
Loading…
Reference in a new issue