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.
|
||||
if egrep -q "^[[:blank:]]*$DEVNAME" /etc/fstab; then
|
||||
log debug "skipping /$DEVNAME exit"
|
||||
lockfile-remove /var/run/usbmount/.mount
|
||||
exit
|
||||
elif grep -q "^[[:blank:]]*UUID=$UUID" /etc/fstab; then
|
||||
log debug "skipping $UUID"
|
||||
lockfile-remove /var/run/usbmount/.mount
|
||||
exit
|
||||
else
|
||||
log debug "/$DEVNAME contains filesystem type $FSTYPE"
|
||||
|
|
Loading…
Reference in a new issue