Mailinglist Archive: opensuse (3536 mails)

< Previous Next >
Re: [opensuse] Where to put script to run on shutdown to remove directories?
  • From: James Knott <james.knott@xxxxxxxxxx>
  • Date: Tue, 20 Jan 2009 08:21:28 -0500
  • Message-id: <4975CFD8.7030308@xxxxxxxxxx>
David C. Rankin wrote:

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
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
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.

Use <>
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups