Commit c395e06f authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

initial

parent 51def3db
KERNEL!="sd[a-z][0-9]", GOTO="quit_automount"
# Import file system parameters; these parameters can be obtained with 'udevadm monitor --environment' command
IMPORT{program}="/sbin/blkid -o udev -p %N"
# Device has a label
ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}"
# Device has no file system, do not mount it
ENV{ID_FS_LABEL}=="", ENV{ID_FS_USAGE}=="", GOTO="quit_automount"
# Device has no label, but has a file system
ENV{ID_FS_LABEL}=="", ENV{ID_FS_USAGE}=="filesystem", ENV{dir_name}="%k"
# Mount device to /media if it is not SSD
ACTION=="add", ENV{ID_ATA_SATA}!="1", RUN+="/bin/mkdir -p /media/%E{dir_name}", RUN+="/bin/mount /dev/%k /media/%E{dir_name}"
# Mound device to /mnt if it is SSD
ACTION=="add", ENV{ID_ATA_SATA}=="1", RUN+="/bin/mkdir -p /mnt/%E{dir_name}", RUN+="/bin/mount /dev/%k /mnt/%E{dir_name}"
# Delete directory after removal
ACTION=="remove", ENV{ID_ATA_SATA}!="1", ENV{dir_name}!="", RUN+="/bin/rmdir /media/%E{dir_name}"
ACTION=="remove", ENV{ID_ATA_SATA}=="1", ENV{dir_name}!="", RUN+="/bin/rmdir /mnt/%E{dir_name}"
# Exit point
LABEL="quit_automount"
#!/bin/sh
mknod -m 0666 /dev/circbuf0 c 135 32
mknod -m 0666 /dev/circbuf1 c 135 33
mknod -m 0666 /dev/circbuf2 c 135 34
mknod -m 0666 /dev/circbuf3 c 135 35
mknod -m 0666 /dev/jpeghead0 c 135 48
mknod -m 0666 /dev/jpeghead1 c 135 49
mknod -m 0666 /dev/jpeghead2 c 135 50
mknod -m 0666 /dev/jpeghead3 c 135 51
mknod -m 0666 /dev/exif_exif0 c 125 16
mknod -m 0666 /dev/exif_exif1 c 125 17
mknod -m 0666 /dev/exif_exif2 c 125 18
mknod -m 0666 /dev/exif_exif3 c 125 19
mknod -m 0666 /dev/exif_meta0 c 125 32
mknod -m 0666 /dev/exif_meta1 c 125 33
mknod -m 0666 /dev/exif_meta2 c 125 34
mknod -m 0666 /dev/exif_meta3 c 125 35
mknod -m 0666 /dev/exif_template c 125 2
mknod -m 0666 /dev/exif_metadir c 125 3
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment