diff options
author | greg@kroah.com <greg@kroah.com> | 2003-12-31 20:35:02 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:13:14 -0700 |
commit | 6d88260a8be069a65ab52fa924e6d4dc13c4e83c (patch) | |
tree | 51fb7b1d6ce340adb74e733080fad3525543f303 | |
parent | 9f7fff04ee0b58f22936693649edb7bd1f5ea8bf (diff) |
[PATCH] move the config files to etc/udev to clean up main directory a bit.
-rw-r--r-- | Makefile | 19 | ||||
-rw-r--r-- | etc/udev/udev.conf.in (renamed from udev.conf.in) | 0 | ||||
-rw-r--r-- | etc/udev/udev.permissions (renamed from udev.permissions) | 0 | ||||
-rw-r--r-- | etc/udev/udev.permissions.debian (renamed from udev.permissions.debian) | 0 | ||||
-rw-r--r-- | etc/udev/udev.rules (renamed from udev.rules) | 0 | ||||
-rw-r--r-- | etc/udev/udev.rules.devfs (renamed from udev.rules.devfs) | 0 | ||||
-rw-r--r-- | udev.rules.demo | 9 |
7 files changed, 10 insertions, 18 deletions
@@ -29,6 +29,7 @@ ROOT = udev VERSION = 011_bk INSTALL_DIR = /usr/local/bin RELEASE_NAME = $(ROOT)-$(VERSION) +LOCAL_CFG_DIR = etc/udev DESTDIR = # override this to make udev look in a different location for it's config files @@ -206,11 +207,11 @@ udev_version.h: @echo \#define UDEV_PERMISSION_FILE \"$(configdir)\udev.permissions\" >> $@ # config files automatically generated -GEN_CONFIGS = udev.conf +GEN_CONFIGS = $(LOCAL_CFG_DIR)/udev.conf # Rules on how to create the generated config files -udev.conf: - sed -e "s:@udevdir@:$(udevdir):" < udev.conf.in > $@ +$(LOCAL_CFG_DIR)/udev.conf: + sed -e "s:@udevdir@:$(udevdir):" < $(LOCAL_CFG_DIR)/udev.conf.in > $@ $(OBJS): $(GEN_HEADERS) @@ -278,16 +279,16 @@ endif install-config: $(GEN_CONFIGS) $(INSTALL) -d $(DESTDIR)$(configdir) @if [ ! -r $(DESTDIR)$(configdir)udev.conf ]; then \ - echo $(INSTALL_DATA) udev.conf $(DESTDIR)$(configdir); \ - $(INSTALL_DATA) udev.conf $(DESTDIR)$(configdir); \ + echo $(INSTALL_DATA) $(LOCAL_CFG_DIR)/udev.conf $(DESTDIR)$(configdir); \ + $(INSTALL_DATA) $(LOCAL_CFG_DIR)/udev.conf $(DESTDIR)$(configdir); \ fi @if [ ! -r $(DESTDIR)$(configdir)udev.rules ]; then \ - echo $(INSTALL_DATA) udev.rules $(DESTDIR)$(configdir); \ - $(INSTALL_DATA) udev.rules $(DESTDIR)$(configdir); \ + echo $(INSTALL_DATA) $(LOCAL_CFG_DIR)/udev.rules $(DESTDIR)$(configdir); \ + $(INSTALL_DATA) $(LOCAL_CFG_DIR)/udev.rules $(DESTDIR)$(configdir); \ fi @if [ ! -r $(DESTDIR)$(configdir)udev.permissions ]; then \ - echo $(INSTALL_DATA) udev.permissions $(DESTDIR)$(configdir); \ - $(INSTALL_DATA) udev.permissions $(DESTDIR)$(configdir); \ + echo $(INSTALL_DATA) $(LOCAL_CFG_DIR)/udev.permissions $(DESTDIR)$(configdir); \ + $(INSTALL_DATA) $(LOCAL_CFG_DIR)/udev.permissions $(DESTDIR)$(configdir); \ fi diff --git a/udev.conf.in b/etc/udev/udev.conf.in index d06b0b0698..d06b0b0698 100644 --- a/udev.conf.in +++ b/etc/udev/udev.conf.in diff --git a/udev.permissions b/etc/udev/udev.permissions index e87b4ddc67..e87b4ddc67 100644 --- a/udev.permissions +++ b/etc/udev/udev.permissions diff --git a/udev.permissions.debian b/etc/udev/udev.permissions.debian index 5df3d0feac..5df3d0feac 100644 --- a/udev.permissions.debian +++ b/etc/udev/udev.permissions.debian diff --git a/udev.rules b/etc/udev/udev.rules index 06d5842c2a..06d5842c2a 100644 --- a/udev.rules +++ b/etc/udev/udev.rules diff --git a/udev.rules.devfs b/etc/udev/udev.rules.devfs index 0d579a4dd4..0d579a4dd4 100644 --- a/udev.rules.devfs +++ b/etc/udev/udev.rules.devfs diff --git a/udev.rules.demo b/udev.rules.demo deleted file mode 100644 index 9ea7895791..0000000000 --- a/udev.rules.demo +++ /dev/null @@ -1,9 +0,0 @@ -# USB camera from Fuji to be named "camera" -LABEL, BUS="usb", SYSFS_vendor="FUJIFILM", NAME="camera%n" - -# USB device plugged into the fourth port of the second hub to be called gps_device -TOPOLOGY, BUS="usb", PLACE="2.4", NAME="gps_device" - -# ttyUSB1 should always be called visor -REPLACE, KERNEL="ttyUSB1", NAME="visor" - |