Sorry tiny error in my patch... a vim swap file was included. Sorry for this mistake :p so Here is a cleaner patch. Regards, Olivier DOLE Le jeudi 02 novembre 2006 à 11:34 +0100, Olivier Dole a écrit : > Hi everyone, > > For my work I need a similar mechanism to "devup" script in pand when a > PAN disconnection occurs. > That's why I've done the following patch (see attachment for source > code) which allows PAN daemon to run a "devdown" script either when a > disconnection is spotted i.e. remote device closes the connection or > when you explicitly do the disconnection. To use it, simply add the > following option to your command line: > pand --options --devdown /path/to/devdown-script > or > pand -options -o /path/to/devdown-script > or you can also read the pand man page ;) > The behaviour is the same as for "devup" script. I mean when the script > is run the following arguments are supplied to the script: > $1 <-> device interface e.g. "bnep0" > $2 <-> bluetooth address of the disconnected device e.g. > "00:45:78:AE:B4:01" > and of course your script must have the correct permissions to run. > > Any feedback about this patch is of course welcome ;) > Hope you will find this patch usefull. > > Regards, > Olivier DOLE > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel