From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Sun, 14 Dec 2003 03:34:16 +0000 Subject: Re: udev.rules.devfs + symlinks & a question Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Sat, Dec 13, 2003 at 10:33:08PM +0100, Svetoslav Slavtchev wrote: > where could i find samples for callout scripts ? > what information is available to the callout environment this is the rule: CALLOUT, BUS=3D"usb", PROGRAM=3D"/tmp/x this is the bus %b", ID=3D"*", NA= ME=3D"%1c", SYMLINK=3D"%2c" this is the callout script: #!/bin/sh echo $* >> /tmp/callout-args set >/tmp/callout-env echo -n "aaa bbb" it creates: /udev/ |-- aaa `-- bbb -> ./aaa callout-args file made by the script contains: this is the bus 1-1.1 callout-env file made by the script contains something like this: ACTION=ADd DEVPATH=3D/class/video4linux/video0 EUID=3D0 GROUPS=3D() HOME=3D/ PATH=3D/sbin:/bin:/usr/sbin:/usr/bin PPID=18479 PWD=3D/ SEQNUM90 SHELL=3D/bin/bash SHELLOPTS=3Dbraceexpand:hashall:interactive-comments:posix UID=3D0 thanks, Kay ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dclick _______________________________________________ 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