. /usr/lib/network/functions
+# Read network configuration.
+network_config_read
+
function cli_config() {
if cli_help_requested $@; then
cli_show_man network-config
esac
case "${action}" in
- config|down|edit|port|status|up)
+ config|disable|down|edit|enable|port|status|up)
zone_${action} ${zone} $@
;;
*)
hook_exec ${type} ${what} help
}
-function cli_dns() {
+function cli_dns_server() {
if cli_help_requested $@; then
- cli_show_man network-dns
+ cli_show_man network-dns-server
exit ${EXIT_OK}
fi
# Get the command.
local cmd=${1}; shift
if [ -z "${cmd}" ]; then
- cli_show_man network-dns
+ cli_show_man network-dns-server
exit ${EXIT_ERROR}
fi
init_run
;;
- config|hostname|port|device|zone|start|stop|restart|status|reset|dns|route)
+ config|hostname|port|device|zone|start|stop|restart|status|reset|route)
cli_${action} $@
;;
cli_dhcpd ${action/dhcp/ip} $@
;;
+ # DNS server configuration.
+ dns-server)
+ cli_dns_server $@
+ ;;
+
""|help|--help|-h)
cli_help $@
;;