summaryrefslogtreecommitdiffstats
path: root/etc/rc.initial.setlanip
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-01-28 16:03:42 +0000
committerErmal <eri@pfsense.org>2011-01-28 16:03:42 +0000
commit9b2e42c9faef82b0e040f106737d7bc33a6ee7ed (patch)
treec6d8269742734ead9ee7e544dbea28df80bb2a34 /etc/rc.initial.setlanip
parent9d0b0635792e42bede701e86f1cda62e64d366a6 (diff)
downloadpfsense-9b2e42c9faef82b0e040f106737d7bc33a6ee7ed.zip
pfsense-9b2e42c9faef82b0e040f106737d7bc33a6ee7ed.tar.gz
When setting the ip from the console also enable the interface otherwise the HTTP_REFERER checks will not let you use the GUI.
Diffstat (limited to 'etc/rc.initial.setlanip')
-rwxr-xr-xetc/rc.initial.setlanip3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc.initial.setlanip b/etc/rc.initial.setlanip
index 1aacfb1..c1f6ddc 100755
--- a/etc/rc.initial.setlanip
+++ b/etc/rc.initial.setlanip
@@ -139,6 +139,7 @@
$config['interfaces'][$interface]['ipaddr'] = $intip;
$config['interfaces'][$interface]['subnet'] = $intbits;
+ $config['interfaces'][$interface]['enable'] = true;
if($g['services_dhcp_server_enable'])
$yn = prompt_for_enable_dhcp_server();
@@ -257,4 +258,4 @@
fgets($fp);
fclose($fp);
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud