# 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}
}
# 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)