Skip to contentSkip to conversation

printf in udev085 rules? ENV{MODALIAS}=="?*"...

DISCUSSION janusz borowski 2 participants 2 messages Feb 20, 2006

lore
Share & tools
lore
#0 lore raw

Hi,
also in v085 (ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug) there are "printfs" in rules:
udev.rules
50-udev-default.rules
for SUBSYSTEM="usb_device" and "dvb".
Maybe, in that moment when subsytems "dvb" and "usb_device" exists there is also defined stdout (or stderr ???)-
am I right?
Thanks in advance
janusz

Quoted 36 lines · Janusz Borowski

Thanks very much for information!
But, it is very surprising for me:
what could be a reason to put "printf" in the maintainer's set of rules (eg. devfs.rules)????
For future applications???
janusz

Quoted 12 lines · Greg KH
Quoted 2 lines · Janusz Borowski

Hi,
I would like to know if printf in udev rules could at all do something?

No, as there is no "console" at that point in time to be able to print to.

Try writing to a file instead.

Hope this helps,

Quoted 10 lines

greg k-h

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642

Quoted 5 lines

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 9 lines · janusz borowski

Hi,
also in v085 (ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug) there are "printfs" in rules:
udev.rules
50-udev-default.rules
for SUBSYSTEM="usb_device" and "dvb".
Maybe, in that moment when subsytems "dvb" and "usb_device" exists there is also defined stdout (or stderr ???)-
am I right?

Come on, it'a a shell invocation and has nothing to do with a udev rule syntax. Please try to understand how variable assignment and expansion in a simple unix shell works before going futher ahead on this topic.

Thanks,
Kay

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel