* Andreas Pakulat <[EMAIL PROTECTED]> [20041228 13:16]: > Zuf�llig udev installiert? Dass kann n�mlich mit den hisax-Treibern > nicht um und deswegen legt es die Devices nicht an. Du musst das beim > Booten selbst machen.
Speziell f�r so alte Treiber habe ich mir ein kleines Script
geschrieben:
| > cat /usr/local/sbin/xdevs.pl
| #!/usr/bin/perl -w
| #
| # xdevs.pl - create extra device nodes for udev
| # by Felix Palmen (Zirias) <[EMAIL PROTECTED]>
| #
| # V 1.0 20040801
|
| my $config="/etc/udev/xdevs.conf";
|
| if (open(CFG,"<",$config)) {
| while (<CFG>) {
| if ( /^(b|c)\s+(\S+)\s+(\S+)\s+(\S+)\s+([0-9]+)\s+([0-9]+)\s+([0-9]+)/ ) {
| unlink "/dev/$2";
| system "mknod --mode=$5 /dev/$2 $1 $6 $7";
| system "chown $3.$4 /dev/$2";
| print " $2";
| }
| }
| print ".\n";
| close CFG;
| }
dazu ein kleines init-script, das in den Runlevels direkt nach udev
verlinkt werden kann:
| > cat /etc/init.d/xdevs
| #!/bin/sh
|
| case "$1" in
|
| start)
| echo -n "Creating extra device nodes:"
| /usr/local/sbin/xdevs.pl
| ;;
|
| stop)
| ;;
|
| force-reload|restart)
| $0 start
| ;;
|
| *)
| echo "Usage: $0 {start|stop|restart|force-reload}"
| exit 1
| esac
|
| exit 0
Die Konfiguration dazu sieht dann z.B. so aus:
| > cat /etc/udev/xdevs.conf
| # nvidia
| c nvidia0 root video 660 195 0
| c nvidiactl root video 660 195 255
|
| # vmware
| c vmnet0 root root 600 119 0
Vielleicht kann ja jemand etwas damit anfangen. Eine nette Erweiterung
w�re sicher, wenn auch Unterverzeichnisse unterst�tzt w�rden.
Gr��e, Felix
--
| /"\ ASCII Ribbon | Felix M. Palmen (Zirias) http://zirias.ath.cx/ |
| \ / Campaign Against | [EMAIL PROTECTED] encrypted mail welcome |
| X HTML In Mail | PGP key: http://zirias.ath.cx/pub.txt |
| / \ And News | ED9B 62D0 BE39 32F9 2488 5D0C 8177 9D80 5ECF F683 |
signature.asc
Description: Digital signature

