new: zumountall script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Very short and simple. Unmounts all the mounts.

This is useful for linking to eg /etc/rc0.d/K22zumountall (and similar
for rc6.d).

Cheers
Zen

-- 
Homepage: www.SoulSound.net -- Free Australia: www.UPMART.org
Please respect the confidentiality of this email as sensibly warranted.
#!/bin/sh

# Default directory to store dynamic mount configs:
FSTAB_DIR="/etc/zmount/mounts"
CONFIG_ENV=/etc/zmount/zmount.conf
if [ -r $CONFIG_ENV ]; then . $CONFIG_ENV; fi

for i in `ls $FSTAB_DIR`; do
   NEXT=$FSTAB_DIR/$i
   . $NEXT
   echo "Unmounting $ENC_DST"
   zumount $ENC_DST
done

---------------------------------------------------------------------
dm-crypt mailing list - http://www.saout.de/misc/dm-crypt/
To unsubscribe, e-mail: dm-crypt-unsubscribe@xxxxxxxx
For additional commands, e-mail: dm-crypt-help@xxxxxxxx

[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux