jkramer / mount

Perl script for atomatic mounting of devices using udev.

This URL has Read+Write access

mount /
name age message
file README Loading commit data...
file mount
README
ABOUT

This is a simple script that automagically mounts and unmounts devices when
plugged in or removed.


INSTALLATION

Place the script in /etc/udev/scripts and make it executable. Add a new rule to
/etc/udev/rules.d that contains the following line:

RUN+="/etc/udev/scripts/mount"

Place your configuration in /etc/mount.rc.


CONFIGURATION

The configuration looks a bit like /etc/fstab. It consists of three columns,
separated by any amount of whitespaces. The first column contains the device.
This may either be the UUID of a file system (preferred), the path to a device
file or a filesystem label with a leading '@'. The second argument is the
target mountpoint, any directory where you want the device to be mounted. The
last column contains mount option. They will be given to the mount command's
"-o" option, so read the mount manual for more information.

Empty lines and everything after a '#' character will be ignored.


REQUIREMENTS

Requires Logger::Syslog.


COPYRIGHT

Copyright (C) 2008 by Jonas Kramer. Published under the terms of the GNU
General Public License (GPL).