chiark / gitweb /
[PATCH] rename namedev.permissions and namedev.config to udev.permissions and udev...
authorgreg@kroah.com <greg@kroah.com>
Wed, 22 Oct 2003 05:08:03 +0000 (22:08 -0700)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:04:09 +0000 (21:04 -0700)
the namedev name didn't really make much sense anymore...

Makefile
udev.8
udev.c
udev.config [moved from namedev.config with 100% similarity]
udev.h
udev.permissions [moved from namedev.permissions with 100% similarity]
udev.spec

index 6710ede1b9dff3bcdaad5ffe839f0dbbd7bed32c..a5c00b7191dd93a0063d3a12af93524fe5d8cc3c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -198,14 +198,14 @@ install: all
        $(INSTALL) -d $(hotplugdir)
        $(INSTALL_PROGRAM) -D $(ROOT) $(sbindir)/$(ROOT)
        $(INSTALL_DATA) -D udev.8 $(mandir)/man8/udev.8
        $(INSTALL) -d $(hotplugdir)
        $(INSTALL_PROGRAM) -D $(ROOT) $(sbindir)/$(ROOT)
        $(INSTALL_DATA) -D udev.8 $(mandir)/man8/udev.8
-       $(INSTALL_DATA) namedev.config $(configdir)
-       $(INSTALL_DATA) namedev.permissions $(configdir)
+       $(INSTALL_DATA) udev.config $(configdir)
+       $(INSTALL_DATA) udev.permissions $(configdir)
        - ln -s $(sbindir)/$(ROOT) $(hotplugdir)/udev.hotplug
 
 uninstall:
        - rm $(hotplugdir)/udev.hotplug
        - ln -s $(sbindir)/$(ROOT) $(hotplugdir)/udev.hotplug
 
 uninstall:
        - rm $(hotplugdir)/udev.hotplug
-       - rm $(configdir)/namedev.permissions
-       - rm $(configdir)/namedev.config
+       - rm $(configdir)/udev.permissions
+       - rm $(configdir)/udev.config
        - rm $(mandir)/man8/udev.8
        - rm $(sbindir)/$(ROOT)
        - rmdir $(hotplugdir)
        - rm $(mandir)/man8/udev.8
        - rm $(sbindir)/$(ROOT)
        - rmdir $(hotplugdir)
diff --git a/udev.8 b/udev.8
index 8865a7905a25c283ebc6067f0bb9f210376e1e73..42239c824d943c126f61073aa5db9fbbb3d133b4 100644 (file)
--- a/udev.8
+++ b/udev.8
@@ -18,16 +18,16 @@ On device creation,
 .B udev
 reads the sysfs directory of the given device to collect device attributes
 like label, serial number or bus device number.
 .B udev
 reads the sysfs directory of the given device to collect device attributes
 like label, serial number or bus device number.
-These attributes are passed as a key to the namedev subsystem
-to receive a unique name for device file creation.
-namedev maintains a database for devices present on the system.
+These attributes are treated as a key 
+to determine a unique name for device file creation.
+udev maintains a database for devices present on the system.
 .br
 On device removal,
 .B udev
 .br
 On device removal,
 .B udev
-queries the namedev database for the name of the device file to be deleted.
+queries the internal database for the name of the device file to be deleted.
 .SH "CONFIGURATION"
 .SH "CONFIGURATION"
-namedev expects its configuration at
-.I /etc/udev/namedev.config.
+udev expects its configuration at
+.I /etc/udev/udev.config.
 The file consists of a set of lines. All empty lines and
 lines beginning with a '#' will be ignored.
 .br
 The file consists of a set of lines. All empty lines and
 lines beginning with a '#' will be ignored.
 .br
@@ -70,7 +70,7 @@ calling external program, that returns a string to match
 .br
 keys: \fBBUS\fP, \fBPROGRAM\fP, \fBID\fP
 .P
 .br
 keys: \fBBUS\fP, \fBPROGRAM\fP, \fBID\fP
 .P
-A sample \fInamedev.conf\fP might look like this:
+A sample \fIudev.conf\fP might look like this:
 .sp
 .nf
 # USB printer to be called lp_color
 .sp
 .nf
 # USB printer to be called lp_color
@@ -90,13 +90,13 @@ CALLOUT, PROGRAM="/sbin/dev_id", BUS="pci", ID="V0815", NAME="dev0815"
 .fi
 .P
 Permissions and ownership for the created device files may specified at
 .fi
 .P
 Permissions and ownership for the created device files may specified at
-.I /etc/udev/namedev.permissions.
+.I /etc/udev/udev.permissions.
 The file consists of a set of lines. All empty lines and
 lines beginning with a '#' will be ignored.
 .br
 Every line lists a device name followed by owner, group and permission mode. All values are separated by colons.
 .sp
 The file consists of a set of lines. All empty lines and
 lines beginning with a '#' will be ignored.
 .br
 Every line lists a device name followed by owner, group and permission mode. All values are separated by colons.
 .sp
-A sample \fInamedev.permissions\fP might look like this:
+A sample \fIudev.permissions\fP might look like this:
 .sp
 .nf
 #name:user:group:mode
 .sp
 .nf
 #name:user:group:mode
diff --git a/udev.c b/udev.c
index ed42862c00881d195e10012b8ca2dd964501dcfa..8746b9a8102820de64b0d72ec3bd882b8ed83ee0 100644 (file)
--- a/udev.c
+++ b/udev.c
@@ -74,8 +74,8 @@ static void get_dirs(void)
 {
        char *temp;
        char *udev_db = UDEV_DB;
 {
        char *temp;
        char *udev_db = UDEV_DB;
-       char *udev_config = NAMEDEV_CONFIG_FILE;
-       char *udev_permission = NAMEDEV_CONFIG_PERMISSION_FILE;
+       char *udev_config = UDEV_CONFIG_FILE;
+       char *udev_permission = UDEV_CONFIG_PERMISSION_FILE;
        int retval;
 
        retval = sysfs_get_mnt_path(sysfs_path, SYSFS_PATH_MAX);
        int retval;
 
        retval = sysfs_get_mnt_path(sysfs_path, SYSFS_PATH_MAX);
similarity index 100%
rename from namedev.config
rename to udev.config
diff --git a/udev.h b/udev.h
index 4c8914f1e2b4727d32d7976d743f94b6609f76bd..1f6e981cc2d627841661737d95f660664cc0ec88 100644 (file)
--- a/udev.h
+++ b/udev.h
@@ -52,9 +52,9 @@ extern int log_message (int level, const char *format, ...)
 
 
 /* filenames for the config and database files */
 
 
 /* filenames for the config and database files */
-#define UDEV_DB                                "udevdb.tdb"
-#define NAMEDEV_CONFIG_PERMISSION_FILE "namedev.permissions"
-#define NAMEDEV_CONFIG_FILE            "namedev.config"
+#define UDEV_DB                                "udev.tdb"
+#define UDEV_CONFIG_PERMISSION_FILE    "udev.permissions"
+#define UDEV_CONFIG_FILE               "udev.config"
 
 #define NAME_SIZE      100
 #define OWNER_SIZE     30
 
 #define NAME_SIZE      100
 #define OWNER_SIZE     30
similarity index 100%
rename from namedev.permissions
rename to udev.permissions
index fd6b488aeb6975d46395442cb739c0a55b5fbfbd..ffdfb2470d0c2c6a7a5b0d5a11043b2506a7f2b6 100644 (file)
--- a/udev.spec
+++ b/udev.spec
@@ -34,8 +34,8 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) /sbin/udev
 %attr(755,root,root) /udev/
 %attr(755,root,root) /etc/udev/
 %attr(755,root,root) /sbin/udev
 %attr(755,root,root) /udev/
 %attr(755,root,root) /etc/udev/
-%attr(0644,root,root) /etc/udev/namedev.config
-%attr(0644,root,root) /etc/udev/namedev.permissions
+%attr(0644,root,root) /etc/udev/udev.config
+%attr(0644,root,root) /etc/udev/udev.permissions
 %attr(-,root,root) /etc/hotplug.d/default/udev.hotplug
 %attr(0644,root,root) %{_mandir}/man8/udev.8*
 
 %attr(-,root,root) /etc/hotplug.d/default/udev.hotplug
 %attr(0644,root,root) %{_mandir}/man8/udev.8*