From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier Blin Date: Tue, 24 Jan 2006 16:24:11 +0000 Subject: DEVLINKS and DEVNAME variables in RUN rules Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hi, I'd like to use the DEVNAME and DEVLINKS (thanks Kay) environment variables in a RUN rule. Unfortunately, they're not exported yet when the command to be executed is computed (i.e. when the format is applied). So, for now, I'm using a dumb trick: RUN+="/bin/sh -c '/sbin/pam_console_setowner $$DEVICE $$DEVNAME $$DEVLINKS'" Would it be possible to have the format applied right before the RUN command is run? Regards -- Olivier Blin - Mandriva ------------------------------------------------------- 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 Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel