Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Treeve Jelbert (a9e20c2cb196522653e20f1793bd63a11445de4a)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Treeve Jelbert <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Treeve Jelbert (a9e20c2cb196522653e20f1793bd63a11445de4a)
  • Date: Tue, 30 Jul 2013 14:51:51 -0500

GIT changes to master grimoire by Treeve Jelbert <treeve AT sourcemage.org>:

ChangeLog | 3 +
disk/eudev/BUILD | 11 ++++
disk/eudev/CONFIGURE | 7 ++
disk/eudev/CONFLICTS | 2
disk/eudev/DEPENDS | 29 ++++++++++++
disk/eudev/DETAILS | 19 +++++++
disk/eudev/FINAL | 77
++++++++++++++++++++++++++++++++
disk/eudev/HISTORY | 8 +++
disk/eudev/INSTALL | 28 +++++++++++
disk/eudev/PRE_BUILD | 3 +
disk/eudev/PRE_SUB_DEPENDS | 6 ++
disk/eudev/PROVIDES | 1
disk/eudev/SUB_DEPENDS | 6 ++
disk/eudev/init.d/coldplug | 28 +++++++++++
disk/eudev/init.d/copy-persistent-rules | 29 ++++++++++++
disk/eudev/init.d/udevd | 10 ++++
disk/eudev/modprobe.aliases | 9 +++
disk/eudev/rules/40-alsa.rules | 14 +++++
disk/eudev/rules/52-modules.rules | 35 ++++++++++++++
disk/eudev/rules/76-cdrom_perms.rules | 3 +
disk/eudev/rules/README | 11 ++++
disk/eudev/rules/rules.examples | 42 +++++++++++++++++
disk/eudev/udev.conf | 14 +++++
disk/eudev/udev.missing | 31 ++++++++++++
24 files changed, 426 insertions(+)

New commits:
commit a9e20c2cb196522653e20f1793bd63a11445de4a
Author: Treeve Jelbert <treeve AT sourcemage.org>
Commit: Treeve Jelbert <treeve AT sourcemage.org>

eudev-v1.1
eudev is a fork of udev, which is independent of the init system
it builds and runs for me on two systems.
the only poroblem that I currently have is that /dev/pts is not created,
even though /etc/init.d/runlevels/%DEV/devices runs.

diff --git a/ChangeLog b/ChangeLog
index 62f1f8c..ccff42b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2013-07-30 Treeve Jelbert <treeve AT sourcemage.org>
+ * disk/eudev: new spell - fork of udev
+
2013-07-28 Treeve Jelbert <treeve AT sourcemage.org>
* database/rekall: spell deprecated

diff --git a/disk/eudev/BUILD b/disk/eudev/BUILD
new file mode 100755
index 0000000..99548e1
--- /dev/null
+++ b/disk/eudev/BUILD
@@ -0,0 +1,11 @@
+cd $SOURCE_DIRECTORY &&
+
+./configure prefix=$INSTALL_ROOT \
+ --with-rootprefix=$INSTALL_ROOT \
+ --with-rootlibdir=$INSTALL_ROOT/lib \
+ --datarootdir=$INSTALL_ROOT/usr/share \
+ --includedir=$INSTALL_ROOT/usr/include \
+ --libdir=$INSTALL_ROOT/usr/lib \
+ --with-firmware-path=$INSTALL_ROOT/lib/firmware \
+ $UDEV_OPTS $UDEV_PERSIST $UDEV_MOD $OPTS &&
+make
diff --git a/disk/eudev/CONFIGURE b/disk/eudev/CONFIGURE
new file mode 100755
index 0000000..617d609
--- /dev/null
+++ b/disk/eudev/CONFIGURE
@@ -0,0 +1,7 @@
+config_query_option UDEV_OPTS 'is /usr on a separate partition' n \
+ '--enable-split-usr=yes' ''
+config_query_option UDEV_PERSIST 'use legacy persistent naming' n \
+ '--enable-rule-generator' \
+ '--disable-rule-generator'
+config_query_option UDEV_MOD 'enable module loading' n \
+ '--enable-modules' ''
diff --git a/disk/eudev/CONFLICTS b/disk/eudev/CONFLICTS
new file mode 100755
index 0000000..77d2503
--- /dev/null
+++ b/disk/eudev/CONFLICTS
@@ -0,0 +1,2 @@
+conflicts udev y
+conflicts udev-old y
diff --git a/disk/eudev/DEPENDS b/disk/eudev/DEPENDS
new file mode 100755
index 0000000..00e5d98
--- /dev/null
+++ b/disk/eudev/DEPENDS
@@ -0,0 +1,29 @@
+depends gperf &&
+depends pkgconfig &&
+depends util-linux &&
+depends libxslt &&
+
+#optional_depends kmod '--enable-libkmod' \
+# '--disable-libkmod' \
+# 'use kmod to load modules (SLOW)' &&
+
+optional_depends glib2 \
+ '--enable-gudev' \
+ '--disable-gudev' \
+ 'for GObject libudev (has function generator) support' &&
+
+optional_depends gobject-introspection \
+ "--enable-introspection" \
+ "--disable-introspection" \
+ "for GObject introspection support" &&
+
+optional_depends gtk-doc \
+ "--enable-gtk-doc" \
+ "--disable-gtk-doc" \
+ "build and install documentation?" &&
+
+optional_depends libselinux \
+ "--enable-selinux" \
+ "--disable-selinux" \
+ "for SELinux support"
+
diff --git a/disk/eudev/DETAILS b/disk/eudev/DETAILS
new file mode 100755
index 0000000..77b65ee
--- /dev/null
+++ b/disk/eudev/DETAILS
@@ -0,0 +1,19 @@
+ SPELL=eudev
+ VERSION=v1.1
+
SOURCE_HASH=sha512:f4f4bfd9ffa601228c569fda649ab68c056aae36a6ec18b346002f772e3b45f23087f7d4497e060b9eaaaf7fa31a9de120119c1cf3a3b2799232f29a97db51d5
+# PATCHLEVEL=0
+ SOURCE=$VERSION.tar.gz
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-${VERSION//v}"
+ URL=https://www.github.com/gentoo/eudev
+ SOURCE_URL=$URL/archive/$SOURCE
+ WEB_SITE=http://www.gentoo.org/proj/en/eudev
+ ENTERED=20121217
+ LICENSE[0]=GPL
+ KEYWORDS="disk devices nodes modules"
+ SHORT="daemon that creates and removes device nodes"
+cat << EOF
+Udev creates and removes device nodes in /dev, based on events the kernel
sends
+out on device discovery or removal
+Eudev was forked from upstream udev at version 195.
+It aims to be independent of the system init system.
+EOF
diff --git a/disk/eudev/FINAL b/disk/eudev/FINAL
new file mode 100755
index 0000000..b1c54f3
--- /dev/null
+++ b/disk/eudev/FINAL
@@ -0,0 +1,77 @@
+default_final &&
+# ensure that all groups used in 50-default.rules exist
+create_group disk
+create_group cdrom
+create_group floppy
+create_group burning
+create_group video
+create_group audio
+create_group uucp
+create_group dialout
+create_group firewire
+create_group tape
+
+# warn of coming changes
+message "\n${PROBLEM_COLOR}About persistent net interfaces naming:" \
+ "$DEFAULT_COLOR$MESSAGE_COLOR" \
+ "\nThe spell now uses udev rules generator. Next time you" \
+ "boot, udev will\ngenerate a rules file called" \
+ "/etc/udev/rules.d/70-persistent-net.rules\nfor all the" \
+ "interfaces it has detected. Then you can modify the name" \
+ "of\nthe interface by changing the NAME key. Udev will" \
+ "not erase it.\nThe old configuration stuff with the" \
+ "DEVICE_MAC field in netconf is now\nobsolete." \
+ "\nudevinfo is gone. use udevadm instead. $DEFAULT_COLOR"
+# udev-174 changes
+message "\n${PROBLEM_COLOR}Udev-174 changes:" \
+ "$DEFAULT_COLOR$MESSAGE_COLOR" \
+ "\nThe udev daemon moved to /lib/udev/udevd"
+# udev-177 changes
+message "\n${PROBLEM_COLOR}Udev-177 changes:" \
+ "$DEFAULT_COLOR$MESSAGE_COLOR" \
+ "'\nudevadm control --reload-rules' option has been renamed to
'--reload'" \
+# udev-178 changes
+message "\n${PROBLEM_COLOR}Udev-178 changes:" \
+ "$DEFAULT_COLOR$MESSAGE_COLOR" \
+ "\nThe RUN+="socket:.." option is deprecated" \
+ "\nServices which listen to udev events,need to subscribe to the
netlink" \
+ "messages with libudev and not let udev block" \
+ "in the rules execution until the message is delivered "
+# udev-182 changes
+message "\n${PROBLEM_COLOR}Udev-182 changes:" \
+ "$DEFAULT_COLOR$MESSAGE_COLOR" \
+ "\nRules files in /etc/udev/rules.d/ take precedence over those " \
+ "in /run/udev/rules.d" \
+ "\n/dev/.udev is no longer used. Now uses /run/udev"
+# udev-183 changes
+message "\n${PROBLEM_COLOR}Udev-183 changes:" \
+ "$DEFAULT_COLOR$MESSAGE_COLOR" \
+ "\n/lib/udev/devices/ are not read anymore" \
+ "\nRUN+="socket:... is no longer supported""
+# udev-186 changes
+message "\n${PROBLEM_COLOR}Udev-186 changes:" \
+ "$DEFAULT_COLOR$MESSAGE_COLOR" \
+ "\nudevadm is now in /sbin" \
+ "\n'udevadm info' now takes a /dev or /sys path as argument," \
+ "and does the right thing."
+# udev-195 changes
+message "\n${PROBLEM_COLOR}Udev-195 / eudev-1 changes:" \
+ "$DEFAULT_COLOR$MESSAGE_COLOR\n" \
+ "\neudev now has its own integrated hardware database;" \
+ "\npciutils and hwdata are no longer used"
+# udev-197 changes
+message "\n${PROBLEM_COLOR}Udev-197 / eudev-1.0 changes:" \
+ "$DEFAULT_COLOR$MESSAGE_COLOR\n" \
+ "\nnew predictable device naming rules based on hardware
configuration" \
+ "\nThis affects mainly network and sound devices" \
+ "\nThe old persistent naming is now optional" \
+ "\nlibudev is now .so.1"
+# eudev-v1.1 changes
+message "\n${PROBLEM_COLOR}Udev-205 / eudev-v1.1 changes:" \
+ "$DEFAULT_COLOR$MESSAGE_COLOR\n" \
+ "\nupdated hwdb" \
+ "\nnow uses builtin kmod for module loading
+
+# final warning
+message "\n${PROBLEM_COLOR}Check any local scripts and udev rules !!!" \
+ "$DEFAULT_COLOR$MESSAGE_COLOR\nRead the NEWS file"
diff --git a/disk/eudev/HISTORY b/disk/eudev/HISTORY
new file mode 100644
index 0000000..25de586
--- /dev/null
+++ b/disk/eudev/HISTORY
@@ -0,0 +1,8 @@
+2013-07-230 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version v1.1
+ * INSTALL: create symlingk for programs that link to old udev
+ new spell based on udev spell
+
+
+
+
diff --git a/disk/eudev/INSTALL b/disk/eudev/INSTALL
new file mode 100755
index 0000000..7c0bcbf
--- /dev/null
+++ b/disk/eudev/INSTALL
@@ -0,0 +1,28 @@
+# udev needs /run
+[[ -d "${INSTALL_ROOT}/run" ]] || install -m 755 -d "$INSTALL_ROOT/run" &&
+
+local file UDEV_CFG="$INSTALL_ROOT/etc/udev" &&
+
+install -m 755 -d "$INSTALL_ROOT/sys" \
+ "$UDEV_CFG/rules.d" &&
+
+for file in $SPELL_DIRECTORY/rules/*; do
+ install_config_file $file "$UDEV_CFG/rules.d/$(basename $file)"
+done &&
+
+# Aliases for modprobe
+install -m 755 -d "$INSTALL_ROOT/etc/modprobe.d" &&
+
+install_config_file "$SPELL_DIRECTORY/modprobe.aliases" \
+ "$INSTALL_ROOT/etc/modprobe.d/udev.conf" &&
+
+#install_config_file "$SPELL_DIRECTORY/udev.missing" \
+# "$UDEV_CFG/udev.missing" &&
+
+# These are used by devices init script, udev.conf also by udev
+install_config_file "$SPELL_DIRECTORY/udev.conf" \
+ "$UDEV_CFG/udev.conf" &&
+default_install &&
+
+# some programs still link to old udev
+ln -sf $TRACK_ROOT/lib/libudev.so.1 $INSTALL_ROOT/lib/libudev.so.0
diff --git a/disk/eudev/PRE_BUILD b/disk/eudev/PRE_BUILD
new file mode 100755
index 0000000..797047b
--- /dev/null
+++ b/disk/eudev/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build &&
+cd $SOURCE_DIRECTORY &&
+autoreconf -f -i --symlink
diff --git a/disk/eudev/PRE_SUB_DEPENDS b/disk/eudev/PRE_SUB_DEPENDS
new file mode 100755
index 0000000..d6b5bb9
--- /dev/null
+++ b/disk/eudev/PRE_SUB_DEPENDS
@@ -0,0 +1,6 @@
+case $THIS_SUB_DEPENDS in
+ GUDEV) is_depends_enabled $SPELL glib2 && return 0 ;;
+ ACL) is_depends_enabled $SPELL acl && return 0 ;;
+ *) message "${PROBLEM_COLOR}bogus sub_depends: $SPELL
$THIS_SUB_DEPENDS${DEFAULT_COLOR}"
+ return 1;;
+esac
diff --git a/disk/eudev/PROVIDES b/disk/eudev/PROVIDES
new file mode 100755
index 0000000..5ca78e5
--- /dev/null
+++ b/disk/eudev/PROVIDES
@@ -0,0 +1 @@
+UDEV
diff --git a/disk/eudev/SUB_DEPENDS b/disk/eudev/SUB_DEPENDS
new file mode 100755
index 0000000..6620c9f
--- /dev/null
+++ b/disk/eudev/SUB_DEPENDS
@@ -0,0 +1,6 @@
+case "$THIS_SUB_DEPENDS" in
+ GUDEV) depends glib2 '--enable-gudev' ;;
+ ACL) depends acl '--enable-udev_acl' ;;
+ *) message "${PROBLEM_COLOR}bogus sub_depends: $SPELL
$THIS_SUB_DEPENDS${DEFAULT_COLOR}" &&
+ return 1;;
+esac
diff --git a/disk/eudev/init.d/coldplug b/disk/eudev/init.d/coldplug
new file mode 100755
index 0000000..0f38ba6
--- /dev/null
+++ b/disk/eudev/init.d/coldplug
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+PROGRAM=/bin/false
+RUNLEVEL=DEV
+ESSENTIAL=yes
+NEEDS="udevd"
+
+# source function library
+. /etc/init.d/smgl_init
+. /etc/sysconfig/devices
+
+start()
+{
+ if [[ $DEVICES = udev ]]; then
+ echo "Triggering kernel device uevents..."
+ /sbin/udevadm trigger
+ evaluate_retval
+ echo "Waiting for all events to be handled..."
+ /sbin/udevadm settle --timeout=60
+ fi
+ evaluate_retval
+}
+
+stop() { exit 0; }
+restart() { exit 3; }
+reload() { exit 3; }
+force_reload() { exit 3; }
+status() { exit 3; }
diff --git a/disk/eudev/init.d/copy-persistent-rules
b/disk/eudev/init.d/copy-persistent-rules
new file mode 100755
index 0000000..639a42e
--- /dev/null
+++ b/disk/eudev/init.d/copy-persistent-rules
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+PROGRAM=/bin/false
+RUNLEVEL=S
+NEEDS="+local_fs"
+
+. /etc/init.d/smgl_init
+
+start() {
+ for rules in /run/udev/tmp-rules--*; do
+ persistent_rules=${rules#/run/udev/tmp-rules--}
+ if [ -e "$rules" -a ! -e "/etc/udev/rules.d/$persistent_rules" ]; then
+ echo "Copying persistent rules to /etc/udev/rules.d/$persistent_rules"
+ cp $rules /etc/udev/rules.d/$persistent_rules
+ fi
+ evaluate_retval
+ done
+}
+
+stop() { exit 0; }
+restart() { exit 3; }
+reload() { exit 3; }
+force_reload() { exit 3; }
+status() { exit 3; }
+
+usage()
+{
+ echo "Usage: $0 {start|stop}"
+}
diff --git a/disk/eudev/init.d/udevd b/disk/eudev/init.d/udevd
new file mode 100755
index 0000000..4431d31
--- /dev/null
+++ b/disk/eudev/init.d/udevd
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+PROGRAM=/sbin/udevd
+#PROGRAM=/lib/udev/udevd
+ARGS="--daemon"
+RUNLEVEL=DEV
+ESSENTIAL=yes
+NEEDS="devices"
+
+. /etc/init.d/smgl_init
diff --git a/disk/eudev/modprobe.aliases b/disk/eudev/modprobe.aliases
new file mode 100644
index 0000000..d8c455f
--- /dev/null
+++ b/disk/eudev/modprobe.aliases
@@ -0,0 +1,9 @@
+# These are needed by udev to autoload some modules
+alias pnp:dPNP0510 irtty-sir
+alias pnp:dPNP0511 irtty-sir
+alias pnp:dPNP0700 floppy
+alias pnp:dPNP0800 pcspkr
+alias pnp:dPNP0b00 rtc
+alias pnp:dPNP0303 atkbd
+alias pnp:dPNP0f13 psmouse
+alias pnp:dPNPb02f analog
diff --git a/disk/eudev/rules/40-alsa.rules b/disk/eudev/rules/40-alsa.rules
new file mode 100644
index 0000000..c0c94cc
--- /dev/null
+++ b/disk/eudev/rules/40-alsa.rules
@@ -0,0 +1,14 @@
+SUBSYSTEM=="sound", GROUP="audio"
+SUBSYSTEM=="snd", GROUP="audio"
+KERNEL=="controlC[0-9]*", NAME="snd/%k"
+KERNEL=="hwC[D0-9]*", NAME="snd/%k"
+KERNEL=="pcmC[D0-9cp]*", NAME="snd/%k"
+KERNEL=="midiC[D0-9]*", NAME="snd/%k"
+KERNEL=="timer", NAME="snd/%k"
+KERNEL=="seq", NAME="snd/%k"
+SUBSYSTEM=="usb", ACTION=="add", ENV{PRODUCT}=="1604/8000/*",
RUN+="/sbin/fxload -s /usr/share/alsa/firmware/usx2yloader/tascam_loader.ihx
-I /usr/share/alsa/firmware/usx2yloader/us428fw.ihx"
+SUBSYSTEM=="usb", ACTION=="add", ENV{PRODUCT}=="1604/8004/*",
RUN+="/sbin/fxload -s /usr/share/alsa/firmware/usx2yloader/tascam_loader.ihx
-I /usr/share/alsa/firmware/usx2yloader/us224fw.ihx"
+SUBSYSTEM=="usb", ACTION=="add", ENV{PRODUCT}=="1604/8006/*",
RUN+="/sbin/fxload -s /usr/share/alsa/firmware/usx2yloader/tascam_loader.ihx
-I /usr/share/alsa/firmware/usx2yloader/us122fw.ihx"
+SUBSYSTEM=="usb", ACTION=="add", ENV{PRODUCT}=="1604/8001/*",
RUN+="/sbin/startproc /usr/bin/us428control"
+SUBSYSTEM=="usb", ACTION=="add", ENV{PRODUCT}=="1604/8005/*",
RUN+="/sbin/startproc /usr/bin/us428control"
+SUBSYSTEM=="sound", KERNEL=="hwC?D2", DRIVERS=="EMU10K1_Audigy",
RUN+="/etc/alsa.d/udev-soundfont"
diff --git a/disk/eudev/rules/52-modules.rules
b/disk/eudev/rules/52-modules.rules
new file mode 100644
index 0000000..fac6f9c
--- /dev/null
+++ b/disk/eudev/rules/52-modules.rules
@@ -0,0 +1,35 @@
+# Module loading rules for systems without hotplug
+
+# Autoload modules that lack aliases but have them defined in
+# /etc/modprobe.conf
+ENV{MODALIAS}!="?*", SUBSYSTEM=="pnp", RUN+="/bin/sh -c 'while read id; do
/sbin/modprobe pnp:d$$id; done < /sys$devpath/id'"
+
+# Check whether we need these rules for this event
+ACTION!="add", GOTO="modprobe_end"
+
+# Autoload modules with aliases
+ATTRS{modalias}=="?*", ACTION=="add", RUN+="/sbin/modprobe $env{MODALIAS}"
+
+# PCMCIA
+SUBSYSTEM=="pcmcia_socket", RUN+="/sbin/modprobe pcmcia"
+
+# I2O
+SUBSYSTEM!="i2o", GOTO="i2o_end"
+RUN+="/sbin/modprobe i2o-block"
+LABEL="i2o_end"
+
+# MMC
+SUBSYSTEM!="mmc", GOTO="mmc_end"
+RUN+="/sbin/modprobe mmc-block"
+LABEL="mmc_end"
+
+# SCSI
+SUBSYSTEM!="scsi_device", GOTO="scsi_device_end"
+ATTRS{type}=="0|7|14", RUN+="/sbin/modprobe sd_mod"
+ATTRS{type}=="1", ATTRS{vendor}=="Onstream", ATTRS{model}!="ADR*"
RUN+="/sbin/modprobe osst"
+ATTRS{type}=="1", RUN+="/sbin/modprobe st"
+ATTRS{type}=="[345]", RUN+="/sbin/modprobe sr_mod"
+RUN+="/sbin/modprobe sg"
+LABEL="scsi_device_end"
+
+LABEL="modprobe_end"
diff --git a/disk/eudev/rules/76-cdrom_perms.rules
b/disk/eudev/rules/76-cdrom_perms.rules
new file mode 100644
index 0000000..a0409a5
--- /dev/null
+++ b/disk/eudev/rules/76-cdrom_perms.rules
@@ -0,0 +1,3 @@
+# cdrom device symlinks and permissions
+ENV{ID_CDROM}=="?*", GROUP="cdrom"
+ENV{ID_CDROM_CD_R}=="?*", MODE="0660", GROUP="burning"
diff --git a/disk/eudev/rules/README b/disk/eudev/rules/README
new file mode 100644
index 0000000..00a082a
--- /dev/null
+++ b/disk/eudev/rules/README
@@ -0,0 +1,11 @@
+The files which name ends in ".rules" will be read by udev in lexical order.
+Any others will be ignored.
+There are some example rules in rules.examples, take a look at those for
+an idea of what's possible with udev.
+
+When a rule matches in one file, a different rule in another file will be
+ignored, so be sure to name your own files properly.
+
+Be sure to leave rules files installed by the spell as they are, so the
+spell can update them when needed. If you need to make changes, always
+add your own rules files when possible.
diff --git a/disk/eudev/rules/rules.examples b/disk/eudev/rules/rules.examples
new file mode 100644
index 0000000..16cc41e
--- /dev/null
+++ b/disk/eudev/rules/rules.examples
@@ -0,0 +1,42 @@
+# There are a number of modifiers that are allowed to be used in some of the
+# fields. See the udev man page for a full description of them.
+# These are just some examples, check the manpage for the full options
+
+# Looking for scsi bus id 42:0:0:1
+#SUBSYSTEMS=="scsi", PROGRAM="/bin/echo -n test-%b", RESULT="test-42:0:0:1",
NAME="%c"
+
+# A usb camera.
+#SUBSYSTEMS=="usb", ATTRS{vendor}=="FUJIFILM", ATTRS{model}=="M100",
NAME="camera%n"
+
+# USB Epson printer to be called lp_epson
+#SUBSYSTEMS="usb", ATTRS{serial}="HXOLL0012202323480", NAME="lp_epson"
+
+# USB HP printer to be called lp_hp
+#SUBSYSTEMS="usb", ATTRS{serial}="W09090207101241330", NAME="lp_hp"
+
+# sound card with PCI bus id 00:0b.0 to be the first sound card
+#SUBSYSTEMS=="pci", KERNELS=="00:0b.0", NAME="dsp"
+
+# sound card with PCI bus id 00:07.1 to be the second sound card
+#SUBSYSTEMS=="pci", KERNELS=="00:07.1", NAME="dsp1"
+
+# USB mouse plugged into the third port of the first hub to be called mouse0
+#SUBSYSTEMS=="usb", PLACE=="1.3", NAME="mouse0"
+
+# USB tablet plugged into the third port of the second hub to be called
mouse1
+#SUBSYSTEMS=="usb", PLACE=="2.3", NAME="mouse1"
+#SUBSYSTEMS=="usb", PLACE=="2.4", NAME="mouse2"
+
+# ttyUSB1 should always be called visor
+#KERNEL=="ttyUSB1", NAME="visor"
+#KERNEL=="ttyUSB0", NAME="pl2303"
+
+# a devfs like way to name some tty devices
+#KERNEL=="ttyS*", NAME="tts/%n"
+#KERNEL=="tty*", NAME="vc/%n"
+
+# if this is a ide cdrom, name it the default name, and create a symlink to
cdrom
+#SUBSYSTEMS=="ide", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT=="cdrom",
NAME="%k", SYMLINK="cdrom"
+
+# DRI devices always go into a subdirectory (as per the LSB spec)
+#KERNEL=="card*", NAME="dri/card%n"
diff --git a/disk/eudev/udev.conf b/disk/eudev/udev.conf
new file mode 100644
index 0000000..624d23e
--- /dev/null
+++ b/disk/eudev/udev.conf
@@ -0,0 +1,14 @@
+# udev.conf
+# The main config file for udev
+#
+# This file can be used to override some of udev's default values
+# for where it looks for files, and where it places device nodes.
+#
+# NOTICE: The udev_root setting is needed by the devices init script.
+
+# Specifies where to place the device nodes in the filesystem.
+udev_root="/dev"
+
+# The logging priority. Valid values are the numerical syslog priorities
+# or their textual representations: err, info and debug.
+udev_log="info"
diff --git a/disk/eudev/udev.missing b/disk/eudev/udev.missing
new file mode 100644
index 0000000..a508e4b
--- /dev/null
+++ b/disk/eudev/udev.missing
@@ -0,0 +1,31 @@
+# /etc/udev/udev.missing
+#
+# this file contains a list of devices that udev doesn't create because
+# they are missing from sysfs
+# /etc/init.d/runlevels/%DEV/devices will read this file and create the
+# device nodes
+#
+# format:
+# devname:type:major:minor:permissions:owner:group
+# devname = name of the device, e.g. 'ppp'
+# type = type of the device, "c" for character, "b" for block devices
+# major = major number of the device
+# minor = minor number of the device
+# permissions = permission string as accepted by chmod
+# owner = owner of the device
+# group = group of the device
+# example: ppp:c:108:0:0660:root:ppp
+# would create /dev/ppp as a char device with major 108 minor 0,
+# permissions set to rw-rw---- owned by root, group ppp
+#
+# lines starting with a '#' are comments and ignored
+#ppp:c:108:0:0644:root:root
+nvidia0:c:195:0:0666:root:root
+nvidia1:c:195:1:0666:root:root
+nvidia2:c:195:2:0666:root:root
+nvidia3:c:195:3:0666:root:root
+nvidia4:c:195:4:0666:root:root
+nvidia5:c:195:5:0666:root:root
+nvidia6:c:195:6:0666:root:root
+nvidia7:c:195:7:0666:root:root
+nvidiactl:c:195:255:0666:root:root



  • [SM-Commit] GIT changes to master grimoire by Treeve Jelbert (a9e20c2cb196522653e20f1793bd63a11445de4a), Treeve Jelbert, 07/30/2013

Archive powered by MHonArc 2.6.24.

Top of Page