Dmnet is a project mainly written in Shell, it's free.
Starts netcfg profiles based on the network in the environment.