James Knott wrote:
David C. Rankin wrote:
Listmates,
When my laptop connects to smb shares, I have directories created under /mnt for the different shares that are accessed. The scripts I use to mount the shares will automatically create the mount points for the shares if they don't already exist when the shares are mounted. However, since the share are usually unmounted by the shutdown sequence when I shutdown my laptop, the directories under /mnt never get deleted and have been accumulating over time.
Right now I have 34 directories under /mnt that makes navigating with konqueror more tedious than it needs to be. What I would like to do I find somewhere I could put a script that gets called on shutdown that I could have unmount the shares and confirm they are unmounted and then remove the directory that was used for the share mount point. I'd like to find somewhere in the shutdown process to put this script without have to create a 'K' script for each runlevel.
Is there such a thing? Some generic shutdown script that is sort of like the opposite of boot.local that I could use during shutdown to call my unmount and rm dir script?
Thanks in advance for any help you can give.
Take a look at /etc/init.d/halt.local.
Thanks James, Carlos and Roger, halt.local looks like the easiest route! -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org