summaryrefslogtreecommitdiffstats
path: root/etc/rc.initial.setlanip
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2014-12-07 22:41:11 +0545
committerRenato Botelho <garga@FreeBSD.org>2014-12-07 20:32:58 -0200
commit14bd365aea535c200ee045dc27d4dab9b41e4462 (patch)
treeb7ec8c6d9df99844ce307e3a3719188e6ffa2654 /etc/rc.initial.setlanip
parentcd4d0c2904b0e4b7a3a297c7207d4b61288fdcb9 (diff)
downloadpfsense-14bd365aea535c200ee045dc27d4dab9b41e4462.zip
pfsense-14bd365aea535c200ee045dc27d4dab9b41e4462.tar.gz
Provide success return indication from console_configure_dhcpd
Recent commit https://github.com/pfsense/pfsense/commit/9ea554ee5cb25ea3bf5bb6bf7997c6c7379ce349 added testing of the return status of console_configure_dhcpd() - this let a user effectively abort from doing anything if they have answered "y" to prompt_for_enable_dhcp_server() and are being asked for the start and end of the range, and then decide they do not want to proceed. However, even when they gave good answers, status 0 was being returned. This prevented changes ever being implemented. Redmine: https://redmine.pfsense.org/issues/4080 The fix is to return 1 at the routine end, when all is good and the code should proceed.
Diffstat (limited to 'etc/rc.initial.setlanip')
-rwxr-xr-xetc/rc.initial.setlanip1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/rc.initial.setlanip b/etc/rc.initial.setlanip
index 235db52..f49cac2 100755
--- a/etc/rc.initial.setlanip
+++ b/etc/rc.initial.setlanip
@@ -401,6 +401,7 @@ function console_configure_dhcpd($version = 4) {
$restart_dhcpd = true;
}
}
+ return 1;
}
if (console_configure_dhcpd(4) == 0)
OpenPOWER on IntegriCloud