summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-08-01 11:13:49 +0000
committerErmal <eri@pfsense.org>2013-08-01 11:13:49 +0000
commit8540ee75c75126644affa9bec0878ba75f8ea6ea (patch)
treeb1a0f4ea1acaed2732a19cb1552b449f65032c0d
parente506b054be026604a757a57499d57639d77425ad (diff)
downloadpfsense-8540ee75c75126644affa9bec0878ba75f8ea6ea.zip
pfsense-8540ee75c75126644affa9bec0878ba75f8ea6ea.tar.gz
Set the interface as first here to properly be able to identify it after in php code. Ticket #2495
-rwxr-xr-xsbin/dhclient-script1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/dhclient-script b/sbin/dhclient-script
index 26b13de..1ba73e0 100755
--- a/sbin/dhclient-script
+++ b/sbin/dhclient-script
@@ -102,6 +102,7 @@ add_new_address() {
netmask $new_subnet_mask \
broadcast $new_broadcast_address \
$medium
+ $IFCONFIG $interface setfirst $new_ip_address
$LOGGER "New IP Address ($interface): $new_ip_address"
$LOGGER "New Subnet Mask ($interface): $new_subnet_mask"
OpenPOWER on IntegriCloud