5

run script upon network connection similar to if-up.d

view full story
linux-howto

http://forums.fedoraforum.org – I recently switched from ubuntu to fedora and had a script to mount and umount sshfs when the network changed states. I placed the scripts in /etc/network/if-up.d/ and /etc/network/if-down.d/ and they were run any time the network went up or down. The closest thing I've been able to find is editing the ifup and ifdown scripts in /etc/sysconfig/network-scripting/, but that looks like it would be broken after an update. I'd also rather not use a script with ping because that wouldn't work well when the network goes up and down several times. I've been looking for a while and haven't been able to find a method similar to debian on fedora. Is there something I overlooked? (HowTos)