Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
case "${action}" in
new)
- dhcpd_subnet_range_new ${proto} ${subnet_id} $@
- exit $?
+ dhcpd_subnet_range_new ${proto} ${subnet_id} $@ || exit ${EXIT_ERROR}
;;
remove)
- dhcpd_subnet_range_remove ${proto} ${subnet_id} $@
- exit $?
+ dhcpd_subnet_range_remove ${proto} ${subnet_id} $@ || exit ${EXIT_ERROR}
;;
*)
error "Unrecognized action: ${action}"
exit ${EXIT_ERROR}
;;
esac
+
+ dhcpd_reload ${proto}
+ return ${EXIT_OK}
}
cli_dhcpd_subnet_show() {