Am 11.04.2011 02:34, schrieb Michael Biebl:
> Am 11.04.2011 01:49, schrieb John Pearson:
>> Hi Michael,
>>
>> Thanks for looking at this bug, and for pointing me to
>> /etc/NetworkManager/dispatcher.d/.
>>
>> However, this does not allow me the degree of control that I'd like: I
>> have both a wired and wireless interface, and don't want to modify
>> accept_ra when connecting to an unknown wireless network.  Having read
>> man 8 NetworkManager, those scripts receive only the interface name and
>> state - I'd also need the SSID to give me enough information to do what
> 
> That is not quite true.
> Run "nmcli con", this will print out the list of connections you have 
> configured
> including a UUID for each connection.
> 
> This UUID is exported as environment variable CONNECTION_UUID when the
> dispatcher script is run, so you can easily match for that.

If you want to see what informantion NM is exporting, drop the attached script
in /etc/NetworkManager/dispatcher.d/ and make it executable.

I probably should ship such a file as example in the NM package...

Cheers,
Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
#/bin/sh

file=/tmp/nm.debug

echo "=== environment ===" >> $file
env >> $file
echo "==== arguments ====" >> $file
echo $@ >> $file

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to