1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 06:52:22 +03:00
Commit Graph

168 Commits

Author SHA1 Message Date
greg@kroah.com
bf9c357633 [PATCH] add permission for legotower usb devices. 2005-04-26 21:36:59 -07:00
tao@kernel.org
b9e3301c3b [PATCH] Minor POSIX-fixes for udev
The attached patch contains a few patches against udev, to remove
use of various XSI:isms and bash:isms, and to change two scripts form
/bin/bash to /bin/sh.  None of the bash-scripts in test/ uses any
bash-specific functions as far as I know, but I didn't touch them since
they aren't used runtime.

Rationale:
* Both of the /bin/bash-scripts are totally free from bashisms, hence they
  don't need to be /bin/bash; using /bin/sh instead helps (mainly)
  embedded-people

* local and source are bash:isms (well, they exist in several other
  shells as well, but they aren't part of POSIX or any of its extensions)

* -a in tests is an XSI-extension, not part of strict POSIX, and is
  easily replaced by &&
  | http://www.opengroup.org/onlinepubs/009695399/utilities/test.html

* Use of fgrep is deprecated in POSIX in favour of grep -F (though fgrep
  will remain in use for a long time...)
  | http://www.opengroup.org/onlinepubs/009695399/utilities/grep.html

The fgrep-change isn't really necessary, since fgrep can always be
implemented as a shell-script, but the rest of the changes would really
be appreciated.
2005-04-26 21:36:59 -07:00
azarah@gentoo.org
41ffb32e8d [PATCH] add microcode rule to permissions.gentoo file
Add microcode rule, remove duplicate rtc and psaux rules,
  and order alphabetically.
2005-04-26 21:36:59 -07:00
greg@kroah.com
ea08d6fc3e [PATCH] add permission rule for jogdial device. 2005-04-26 21:36:59 -07:00
greg@kroah.com
58ecc5d77f [PATCH] fix permission problem with input event and ts nodes for gentoo 2005-04-26 21:36:58 -07:00
greg@kroah.com
ff0977b12e [PATCH] change default perms of misc/rtc to be readable by anyone. 2005-04-26 21:36:21 -07:00
greg@kroah.com
e978da492b [PATCH] tweak the gentoo default permission rules as they are wrong for tty and misc devices. 2005-04-26 21:35:47 -07:00
greg@kroah.com
7f639ff99e [PATCH] add udev.permissions.slackware file.
From Lucas de Souza Santos <lucasdss@yahoo.com.br>
2005-04-26 21:35:17 -07:00
greg@kroah.com
477f5b63ec [PATCH] add more permissions based on SuSE's recommendations. 2005-04-26 21:35:16 -07:00
greg@kroah.com
3a0b657b76 [PATCH] added rules for tun and raw devices 2005-04-26 21:35:16 -07:00
greg@kroah.com
56dbd7dfb0 [PATCH] add udev conf.d file. 2005-04-26 21:35:16 -07:00
greg@kroah.com
87afc6dea0 [PATCH] Switch the default config to point to a directory for the rules and permission files. 2005-04-26 21:35:16 -07:00
greg@kroah.com
6763c8a5a1 [PATCH] update the Red Hat .dev files to work on other distros 2005-04-26 21:35:15 -07:00
greg@kroah.com
b4eafd9467 [PATCH] add dbus.dev, pam_console.dev and selinux.dev files for /etc/dev.d/default/ usage
Thanks to Red Hat for them.
2005-04-26 21:35:15 -07:00
greg@kroah.com
e3f83d532e [PATCH] added rule to put USB printers in their proper places.
Thanks to Dan Weber <dan@mirrorlynx.com> for the info.
2005-04-26 21:35:15 -07:00
greg@kroah.com
a04913b568 [PATCH] added rules for CAPI devices.
Thanks to Marcel Holtmann <marcel@holtmann.org> for the information.
2005-04-26 21:35:15 -07:00
greg@kroah.com
0e404ee1ef [PATCH] added a dev.d alsa script to help people out.
Originally by Marco d'Itri <md@Linux.IT>
2005-04-26 21:35:15 -07:00
greg@kroah.com
d5853b48fb [PATCH] add hotplug.dev script to handle renamed network devices. 2005-04-26 21:35:13 -07:00
greg@kroah.com
150aa5aaf1 [PATCH] add netlink rules to devfs and gentoo rules files. 2005-04-26 21:35:13 -07:00
greg@kroah.com
b085ec0d56 [PATCH] added USB device rules to rules files. 2005-04-26 21:35:13 -07:00
greg@kroah.com
b579916fb5 [PATCH] clean up the gentoo rules file a bit more, adding dri rules. 2005-04-26 21:35:13 -07:00
greg@kroah.com
69b94397d3 [PATCH] fix up udev.rules to handle oss rules better.
Patch from Jordan <lx_xero@comcast.net>
2005-04-26 21:35:12 -07:00
greg@kroah.com
357f44a534 [PATCH] move udev_dbus to extras/dbus
Should build now, but might have linking problems.
2005-04-26 21:35:11 -07:00
ken@cgi101.com
3e16482d25 [PATCH] Added line to udev.permissions.redhat
Added this line to have xterms provide a prompt.
2005-04-26 21:35:08 -07:00
greg@kroah.com
2ef3bc2b70 [PATCH] Remove Debian permission files as the Debian maintainer doesn't seem to want to share :( 2005-04-26 21:35:07 -07:00
greg@kroah.com
5ba7d3d603 [PATCH] update the Gentoo rules files. 2005-04-26 21:35:07 -07:00
greg@kroah.com
c9043d4597 [PATCH] Add Red Hat rules and permissions files
Taken from udev-018-2.src.rpm from Fedora Devel.
2005-04-26 21:35:07 -07:00
kay.sievers@vrfy.org
311e9ae681 [PATCH] udev - man page update
Here is a small change to the udev man page:

  - clarify the use of the NAME{all_partitions} syntax
    and add a example to udev.rules.example
  - mention the empty NAME field to ignore the device
  - prepare a SYMLINK field for the addition of Andrey's
    "multiple symlinks" documentation :)
2005-04-26 21:35:06 -07:00
greg@kroah.com
2b7289ae88 [PATCH] update udev.rules.gentoo with new config file format. 2005-04-26 21:32:29 -07:00
greg@kroah.com
e59d338c96 [PATCH] Update the Gentoo udev.rules and udev.permissions files
These are very good devfs-like rules for others to use if they want to.
2005-04-26 21:32:29 -07:00
greg@kroah.com
1d24d9977d [PATCH] Create a udev.rules.examples file to hold odd udev.rules
These are for examples only, not for everyone to use as they cause too
many problems for different people when they are in the main udev.rules
file.
2005-04-26 21:32:29 -07:00
ext.devoteam.varoqui@sncf.fr
3217d739fb [PATCH] symlink dm-[0-9]* rule 2005-04-26 21:32:29 -07:00
greg@kroah.com
8fff7b42b4 [PATCH] start up udevd ourselves in the init script to give it some good priorities. 2005-04-26 21:32:28 -07:00
john-hotplug@fjellstad.org
24f8f09876 [PATCH] init.d debian patch
I dualboot between 2.4.x and 2.6.x right now, and although I
want udev to start up when 2.6 is booting, I don't want it to try when
2.4.x is booting.

This is a small patch to not start up udev if sysfs is not
mounted.
2005-04-26 21:32:28 -07:00
greg@kroah.com
20f86361f4 [PATCH] update the red hat init script to handle nodes that are not present
Thanks to Gentoo for the list of these files.
2005-04-26 21:32:28 -07:00
kay.sievers@vrfy.org
88f09368b3 [PATCH] udev - switch callout part selector to {attribute}
Here we change the magic callout part number selector to the new
atribute syntax. The syntax to select the second part of the callout string:

 '%2c' is now '%c{2}'

I think it's more clear and we no longer misuse the length argument.

The old syntax is still supported, but we should remove it some
time in the future.
2005-04-26 21:32:28 -07:00
kay.sievers@vrfy.org
16378373cb [PATCH] udev - switch SYSFS_file to SYSFS{file}
Here we switch the configs and man pages to the new attribute syntax.
Also the 'partition trick' is mentioned in udev.8

I think it's more clear visible now, that inside the brackets are user
supplied values used and not some magic keys handled:

  'SYSFS_dev' is now 'SYSFS{dev}'

The old syntax is still supported.
2005-04-26 21:32:28 -07:00
greg@kroah.com
1a3b802ff2 [PATCH] update the init.d udev script based on a patch from Red Hat. 2005-04-26 21:32:27 -07:00
greg@kroah.com
552a4d426f [PATCH] remove the .udev.tdb when installing or uninstalling to be safe. 2005-04-26 21:32:27 -07:00
greg@kroah.com
66a9021760 [PATCH] remove the database at startup. 2005-04-26 21:32:27 -07:00
kay.sievers@vrfy.org
0c25b2066d [PATCH] udev - fix cdrom symlink rule
We only need to look at the device, not at the partitions.
2005-04-26 21:32:26 -07:00
azarah@nosferatu.za.org
4d803d8d04 [PATCH] make logging a config option
Once again, patch to make logging a config option.

Reason for this (since you asked for it):
 - In our setup it is easy (although still annoying) .. just edit the
   ebuild, add logging support (or remove it) and rebuild.  For say a
   binary distro, having the logging is useful for debugging some
   times, but its more a once of, or rare thing, as you do not add or
   change config files every day.  Sure, we can have logging by
   default, but many do not want ~300 lines of extra debugging in their
   logs is not pleasant, and they will complain.  Rebuilding the
   package for that binary package (given the users it is targeted to)
   is usually not within most users grasp.
2005-04-26 21:32:26 -07:00
greg@kroah.com
79080c2664 [PATCH] kill the last examples that contained the %D option. 2005-04-26 21:13:20 -07:00
mbuesch@freenet.de
25f8a5ad64 [PATCH] LFS init script update 2005-04-26 21:13:18 -07:00
kay.sievers@vrfy.org
765cbd9759 [PATCH] set default owner/group in db - update
I've edited the man page today, so this is alreay included :)

Also a few more trivials:
  o added the defaults to udev.conf.in
  o removed class_dev from get_default_mode(), to match with Hanna's
  o changed size of mode_str to MODE_SIZE
  o changed a few char compares from from 0x00 to '\0'
2005-04-26 21:13:17 -07:00
flamingice@sourmilk.net
5e4f123888 [PATCH] minor patch for devfs rules
I've attached a patch that adds a few rules to udev.rules.devfs, making it
look a little more like devfs on my system. (I have the sysfs patches from
2.6.1-rc1-mm2) I added rules for oss, misc, floppy, and input devices. The
oss rules look like trouble with a wildcard at the end of each name, but I'm
not sure how I can make it any better.

Devfs has a bunch of other devices in the floppy directory for floppies
formatted in unusual ways, but I don't see them in udev. Not that I ever used
them, since they're usually automatically detected.
2005-04-26 21:13:16 -07:00
greg@kroah.com
18f0045bc8 [PATCH] remove the %D modifier as it is not longer needed. 2005-04-26 21:13:16 -07:00
greg@kroah.com
45d57088f9 [PATCH] remove unneeded keyboard rule. 2005-04-26 21:13:16 -07:00
greg@kroah.com
1782087e4f [PATCH] added input device rules to udev.rules and udev.rules.devfs 2005-04-26 21:13:16 -07:00
kay.sievers@vrfy.org
7e5f7397f9 [PATCH] udev - CALLOUT is PROGRAM now
replace CALLOUT by PROGRAM and fix old rule format
2005-04-26 21:13:16 -07:00
greg@kroah.com
1eefb969ab [PATCH] oops, forgot to fix up the PROGRAM result from ID to RESULT in the config files. 2005-04-26 21:13:15 -07:00
elkropac@students.zcu.cz
655f414dde [PATCH] fix udev directory for Debian init script
there is also patch on debian init.d file, it uses variable $udev_dir
also when creating and removing symlinks
2005-04-26 21:13:15 -07:00
greg@kroah.com
86673eb3ed [PATCH] Add alsa device rules and a few other devfs rules.
Thanks to Libor Klepac <elkropac@students.zcu.cz> for the information
2005-04-26 21:13:15 -07:00
greg@kroah.com
71cf391508 [PATCH] convert the default rules files to the new format. 2005-04-26 21:13:15 -07:00
eike-hotplug@sf-tec.de
e64280b8b3 [PATCH] LSB init script and other stuff
I had too much time during the holidays, so I played a bit with udev. The
changes are like last time mostly on the init stuff. I'm sending you this as
a great diff which is just for comments.

What it does:
-fix a typo in Makefile
-use only one "grep -v" instead of many
-don't include BK-Files into release (shrinks the stuff to 30%!)
-add a new init script which is LSB compliant
-add some flags to choose which one to use
-use /etc/udev/udev.conf in Redhat init script as the source for the udev
directory. If this is not done then the init script may create a directory
which udev itself isn't using (I changed /udev to /Udev to avoid collisions
with /usr and ran into this)
-first check for sysfs_dir before creating udev_root (maybe someone else has
already fixed this, I saw this discussion on lkml)
2005-04-26 21:13:15 -07:00
greg@kroah.com
40041ff4f1 [PATCH] added dri rule to the default config file. 2005-04-26 21:13:15 -07:00
greg@kroah.com
8240b47514 [PATCH] added init.d udev script for debian
Thanks to Mathieu Segaud <matt@minas-morgul.org> for the file.
2005-04-26 21:13:14 -07:00
christophe@saout.de
f1db055ab2 [PATCH] add IGNORE rule type
On Wed, Dec 31, 2003 at 11:24:53AM -0800, Greg KH wrote:

> > There should be a possibility to tell udev not to create a device node.
> >
> > device-mapper: Usually set up by libdevmapper (or EVMS tools) which
> > creates the device node on its own under /dev/mapper/<name>.
> >
> > With udev a second device is created named /dev/dm-<minor> which is not
> > really needed.
>
> Good point.  Ok, I'll agree with you.  Care to make up a patch for this
> kind of feature?

Yes, I can try.

There was no way to tell not to do anything so I created one. Errors
are signalled via negative return values, so I thought that a positive,
non-zero one could mean to ignore the device. I don't like it but
perhaps you have a better solution.
2005-04-26 21:13:14 -07:00
greg@kroah.com
6a82707227 [PATCH] add cdrom rule for ide cdrom.
Rule came from Kay
2005-04-26 21:13:14 -07:00
greg@kroah.com
8ccd82e04c [PATCH] move the dbus config file to etc/dbus-1/system.d/ 2005-04-26 21:13:14 -07:00
greg@kroah.com
6d88260a8b [PATCH] move the config files to etc/udev to clean up main directory a bit. 2005-04-26 21:13:14 -07:00
greg@kroah.com
9f7fff04ee [PATCH] add Gentoo versions of the rules and permissions files. 2005-04-26 21:13:12 -07:00
greg@kroah.com
5e22c4df53 [PATCH] added udev.init script for the Linux From Scratch project.
Thanks to Michael Buesch <mbuesch@freenet.de> for providing it.
2005-04-26 21:13:11 -07:00
greg@kroah.com
18c783a7e6 [PATCH] more init script cleanups, the stop target now calls udev to cleanup instead of just removing the whole /udev directory. 2005-04-26 21:13:10 -07:00
greg@kroah.com
5779dd31f4 [PATCH] make udev init script run udev in the background to let startup go much faster 2005-04-26 21:13:10 -07:00
greg@kroah.com
5a3ee97760 [PATCH] Add restart target to the etc/init.d/udev script
Change made by Rolf Eike Beer <eike-hotplug@sf-tec.de>
2005-04-26 21:13:07 -07:00
greg@kroah.com
7e1b28e8fa [PATCH] fix udev init.d script to handle all class devices in sysfs. 2005-04-26 21:13:02 -07:00
rml@tech9.net
8b94dcd067 [PATCH] udev init script
I integrated udev with Fedora Core.  The main piece is simply building
/udev on boot, since we don't have an initramfs yet. We should also   
clear out /udev on shutdown, for /udev directories mounted on persistent
media.

The attached script goes in /etc/init.d

Then do "chkconfig --add udev"

And the rest is handled automatically.  I made it for Fedora but it will
probably work, with little change, on any Linux system.

Right now it only does sysfs-based discovery of block and tty devices,
since those are the only types of devices I have on my system.  There is
a TODO in the script where we would add the other device types.
2005-04-26 21:06:22 -07:00