MoinMoin Logo
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Navigation

  • Start
  • Sitemap

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

Revision 1 as of 2014-01-13 18:26:49
  • udev

udev

Automount usb stick

File /etc/udev/rules.d/99-automount.rules

ACTION=="add",KERNEL=="sd[a-z][1-9]", PROGRAM="automount"
ACTION=="remove",KERNEL=="sd[a-z][1-9]", PROGRAM="automount"
ACTION=="add",KERNEL=="sd[b-z]", PROGRAM="automount"
ACTION=="remove",KERNEL=="sd[b-z]", PROGRAM="automount"

File /lib/udev/automount with chmod 755:

PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin

DEV=$(basename $DEVNAME)

echo "$DEV $ACTION" >> /tmp/env.txt

case $ACTION in
add) mkdir -p /mnt/memory/$DEV
     logger "automount: $ACTION $DEV"
     mount -ouser,umask=0000 /dev/$DEV /mnt/memory/$DEV
  ;;
remove) 
     logger "automount: $ACTION $DEV"
     umount /mnt/memory/$DEV
;;
esac
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01