Automatically create routes in OS X using VPN

Very annoyed in OS X, that after the establishment of VPN-connections, you had to manually are forwarding some subnets inside VPN. After a while it got tired and was written a little script that is executed automatically immediately after the VPN-connection is established.