~ubuntu-branches/ubuntu/lucid/dhcp3/lucid-security

« back to all changes in this revision

Viewing changes to client/scripts/freebsd

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Pollock
  • Date: 2009-10-07 23:25:53 UTC
  • mfrom: (1.2.9 upstream)
  • mto: This revision was merged to the branch mainline in revision 53.
  • Revision ID: james.westby@ubuntu.com-20091007232553-nsdu7jit2urg4jmy
Tags: 3.1.3-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
#
3
 
# $Id: freebsd,v 1.17 2006/07/22 02:24:16 dhankins Exp $
 
3
# $Id: freebsd,v 1.17.26.1 2009/04/21 15:06:41 pselkirk Exp $
4
4
#
5
5
# $FreeBSD$
6
6
 
89
89
if [ x$alias_subnet_mask != x ]; then
90
90
  alias_subnet_arg="netmask $alias_subnet_mask"
91
91
fi
 
92
if [ x$new_interface_mtu != x ]; then
 
93
  mtu_arg="mtu $new_interface_mtu"
 
94
fi
 
95
if [ x$IF_METRIC != x ]; then
 
96
  metric_arg="metric $IF_METRIC"
 
97
fi
92
98
 
93
99
if [ x$reason = xMEDIUM ]; then
94
100
  eval "ifconfig $interface $medium"
146
152
  if [ x$old_ip_address = x ] || [ x$old_ip_address != x$new_ip_address ] || \
147
153
     [ x$reason = xBOUND ] || [ x$reason = xREBOOT ]; then
148
154
    eval "ifconfig $interface inet $new_ip_address $new_netmask_arg \
149
 
                                        $new_broadcast_arg $medium"
 
155
                        $new_broadcast_arg $mtu_arg $metric_arg $medium"
150
156
    $LOGGER "New IP Address ($interface): $new_ip_address"
151
157
    $LOGGER "New Subnet Mask ($interface): $new_subnet_mask"
152
158
    $LOGGER "New Broadcast Address ($interface): $new_broadcast_address"
210
216
    route delete $alias_ip_address 127.0.0.1 > /dev/null 2>&1
211
217
  fi
212
218
  eval "ifconfig $interface inet $new_ip_address $new_netmask_arg \
213
 
                                        $new_broadcast_arg $medium"
 
219
                        $new_broadcast_arg $mtu_arg $metric_arg $medium"
214
220
  $LOGGER "New IP Address ($interface): $new_ip_address"
215
221
  $LOGGER "New Subnet Mask ($interface): $new_subnet_mask"
216
222
  $LOGGER "New Broadcast Address ($interface): $new_broadcast_address"