Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Is it possible to have NetworkManager run a script before it connects to a wifi network and pass the SSID of the network to the script (or just execute a script based on SSID)? I'm switching back from WICD and am sorely missing this ability. I googled around but all I could find is /etc/NetworkManager/dispatcher.d/* which seems to execute after the connection is established and doesn't pass the SSID.

share|improve this question
How about /etc/network/if-up.d? – Nattgew Apr 30 '14 at 16:36

1 Answer 1

up vote 1 down vote accepted

Old seemingly unsanwered... filling in the blank.

/etc/network/if-up.d -> pre-up option

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.