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