propozycje poprawek: udev (pcmcia) i kismet

Michał Panasiewicz wolvverine w tarchomin.pl
Śro, 20 Wrz 2006, 08:05:46 CEST


[adi w wolvv-lap ~]$ diff -uN /usr/bin/kismet.old /usr/bin/kismet
--- /usr/bin/kismet.old 2006-09-19 20:30:43.000000000 +0200
+++ /usr/bin/kismet     2006-09-19 20:25:42.000000000 +0200
@@ -54,7 +54,7 @@
 fi

 echo "Starting server..."
-${BIN}/kismet_server --silent $server &
+${BIN}/sudo ${BIN}/kismet_server --silent $server &

 servpid=$!

ponieważ:

[adi w wolvv-lap ~]$ kismet
Server options:  none
Client options:  none
Starting server...
Waiting for server to start before starting UI...
Will drop privs to adi (500) gid 1000
FATAL:  Unable to set up pidfile /var/run//kismet_server.pid, couldn't open for writing: Permission denied[1] + Done (1)             ${BIN}/kismet_server --silent $server


[adi w wolvv-lap ~]$ diff
-uN /etc/udev/rules.d/60-pcmcia.rules.org /etc/udev/rules.d/60-pcmcia.rules
--- /etc/udev/rules.d/60-pcmcia.rules.org       2006-09-20
07:34:42.000000000 +0200
+++ /etc/udev/rules.d/60-pcmcia.rules   2006-09-20 07:41:53.000000000
+0200
@@ -1,19 +1,19 @@
 # PCMCIA devices:
 #
 # modprobe $modalias loads all possibly appropriate modules
-ACTION=="add", SUBSYSTEM=="pcmcia", MODALIAS=="?*", \
+ACTION=="add", SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", \
                RUN+="/sbin/modprobe $modalias"

 # Very few CIS firmware entries (which we use for matching)
 # are so broken that we need to read out random bytes of it
 # instead of the manufactor, card or product ID. Then the
 # matching is done in userspace.
-ACTION=="add", SUBSYSTEM=="pcmcia", MODALIAS=="?*", \
+ACTION=="add", SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", \
                RUN+="/sbin/pcmcia-check-broken-cis"

 # However, the "weak" matching by func_id is only allowed _after_
modprobe
 # returns, so that "strong" matches have a higher priority.
-ACTION=="add", SUBSYSTEM=="pcmcia", MODALIAS=="?*", \
+ACTION=="add", SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", \
                RUN+="/bin/sh -c 'echo 1
> /sys/$devpath/allow_func_id_match'"

 # PCMCIA sockets:


ponieważ:

Sep 17 02:46:00 wolvv-lap udevd[998]: add_to_rules: unknown key 'MODALIAS' in /etc/udev/rules.d/60-pcmcia.rules:4
Sep 17 02:46:00 wolvv-lap udevd[998]: add_to_rules: unknown key 'MODALIAS' in /etc/udev/rules.d/60-pcmcia.rules:10
Sep 17 02:46:00 wolvv-lap udevd[998]: add_to_rules: unknown key 'MODALIAS' in /etc/udev/rules.d/60-pcmcia.rules:14



-- 
Michał Panasiewicz Linux user nr. #425323 - jabber: wolvverine [ at ] chrome [ dot ] pl  || e-mail: wolvverine [ at ] tlen [ dot ] pl , wolvverine [ at ] pld-linux [ dot ] org
http://www.linkomp.pl - Linkomp - Usługi informatyczne dla firm - biuro [ at ] linkomp [ dot ] pl



Więcej informacji o liście dyskusyjnej pld-devel-pl