Mailinglist Archive: opensuse (3536 mails)

< Previous Next >
[opensuse] Where to put script to run on shutdown to remove directories?
  • From: "David C. Rankin" <drankinatty@xxxxxxxxxxxxxxxxxx>
  • Date: Tue, 20 Jan 2009 02:53:47 -0600
  • Message-id: <4975911B.4000606@xxxxxxxxxxxxxxxxxx>

When my laptop connects to smb shares, I have directories created under
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.

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
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >