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:14:56 +0000
commit482d7386362fbf79e45f7dd2696839e3acd21c8e (patch)
treee2c5ece7b2847d09a4b04c17e6042b480a8d07b0
parente492500fcd6cd1e33ef8a40928c1cdbc98b72c71 (diff)
downloadpfsense-482d7386362fbf79e45f7dd2696839e3acd21c8e.zip
pfsense-482d7386362fbf79e45f7dd2696839e3acd21c8e.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