Giter Site home page Giter Site logo

ldm's Introduction

l(ightweight) d(evice) m(ounter)

2011-2013 (C) The Lemon Man

A lightweight daemon that mounts usb drives, cds, dvds or floppys automagically. Made for people that have no desktop-manager with all the bells and whistles but still want to enjoy automount. It does mount every device in /media and names them by either (in order) volume label, volume uuid or device serial or using the fstab rule for that device, if defined. Everything in ~30Kb of C code with libudev & libmount as only dependencies.

Callbacks

To execute a script after a device is mounted/unmounted just edit ldm.c and point CALLBACK_PATH to your script/program (must be +x), it will be executed with the action performed (mount/unmount) and the mountpoint as arguments respectively.

Blacklisting

If you don't want ldm to automount a certain device just write a fstab entry for it, specifying the noauto option.

Install

ldm expects a config file at /etc/ldm.conf which contains your user uid and gid. Don't be scared, it's just a matter of writing down 2 lines using your favourite editor.

USER_GID=<output of `id -g` ran from your user>
USER_UID=<output of `id -u` ran from your user>

That's all, I said it was easy!

RTFM, always.

ldm's People

Contributors

ekroth avatar lemonboy avatar rolinh avatar vodik avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.