# Flush all DNS servers.
dns_server_flush
- # Re-run the initialization functions
- init_run
+ # Trigger udev to re-add all physical network devices
+ cmd_quiet udevadm trigger --action=add --subsystem-match=net
exit ${EXIT_OK}
}
db-dump)
db_dump
;;
+ device-get-by-mac-address)
+ device_get_by_mac_address "$@"
+ ;;
ipsec-connection-exists)
ipsec_connection_exists "$@"
;;
# Process the given action
case "${action}" in
init)
- init_run
+ # Update resolv.conf(5) when initializing the network
+ dns_generate_resolvconf
+
+ # Also execute all triggers
+ triggers_execute_all "init"
;;
settings|hostname|port|device|zone|start|stop|restart|status|reset|route|vpn|wireless)