dhclient-script (228259) | dhclient-script (228463) |
---|---|
1#!/bin/sh 2# 3# $OpenBSD: dhclient-script,v 1.6 2004/05/06 18:22:41 claudio Exp $ | 1#!/bin/sh 2# 3# $OpenBSD: dhclient-script,v 1.6 2004/05/06 18:22:41 claudio Exp $ |
4# $FreeBSD: head/sbin/dhclient/dhclient-script 228259 2011-12-04 14:44:31Z dumbbell $ | 4# $FreeBSD: head/sbin/dhclient/dhclient-script 228463 2011-12-13 11:54:51Z glebius $ |
5# 6# Copyright (c) 2003 Kenneth R Westerback <krw@openbsd.org> 7# 8# Permission to use, copy, modify, and distribute this software for any 9# purpose with or without fee is hereby granted, provided that the above 10# copyright notice and this permission notice appear in all copies. 11# 12# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 302 unchanged lines hidden (view full) --- 315MEDIUM) 316 eval "$IFCONFIG $interface $medium" 317 eval "$IFCONFIG $interface inet -alias 0.0.0.0 $medium" >/dev/null 2>&1 318 sleep 1 319 ;; 320 321PREINIT) 322 delete_old_alias | 5# 6# Copyright (c) 2003 Kenneth R Westerback <krw@openbsd.org> 7# 8# Permission to use, copy, modify, and distribute this software for any 9# purpose with or without fee is hereby granted, provided that the above 10# copyright notice and this permission notice appear in all copies. 11# 12# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 302 unchanged lines hidden (view full) --- 315MEDIUM) 316 eval "$IFCONFIG $interface $medium" 317 eval "$IFCONFIG $interface inet -alias 0.0.0.0 $medium" >/dev/null 2>&1 318 sleep 1 319 ;; 320 321PREINIT) 322 delete_old_alias |
323 $IFCONFIG $interface inet alias 0.0.0.0 netmask 0.0.0.0 broadcast 255.255.255.255 up | 323 $IFCONFIG $interface inet alias 0.0.0.0 netmask 255.0.0.0 broadcast 255.255.255.255 up |
324 ;; 325 326ARPCHECK|ARPSEND) 327 ;; 328 329BOUND|RENEW|REBIND|REBOOT) 330 check_hostname 331 if [ -n "$old_ip_address" ]; then --- 76 unchanged lines hidden --- | 324 ;; 325 326ARPCHECK|ARPSEND) 327 ;; 328 329BOUND|RENEW|REBIND|REBOOT) 330 check_hostname 331 if [ -n "$old_ip_address" ]; then --- 76 unchanged lines hidden --- |