- Converted pingdef to be a function so it always uses the current default route.
- Added a function to fix the ca-cert issue in network-manager.