dhclient-script (147218) | dhclient-script (148420) |
---|---|
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 147218 2005-06-10 03:41:18Z brooks $ | 4# $FreeBSD: head/sbin/dhclient/dhclient-script 148420 2005-07-26 18:27:37Z brooks $ |
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 --- 180 unchanged lines hidden (view full) --- 193 # allow the local script to abort processing of this state 194 # local script must set exit_status variable to nonzero. 195 if [ $exit_status -ne 0 ]; then 196 exit $exit_status 197 fi 198fi 199 200if [ -x $NETSTAT ]; then | 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 --- 180 unchanged lines hidden (view full) --- 193 # allow the local script to abort processing of this state 194 # local script must set exit_status variable to nonzero. 195 if [ $exit_status -ne 0 ]; then 196 exit $exit_status 197 fi 198fi 199 200if [ -x $NETSTAT ]; then |
201 if_defaulroute=`$NETSTAT -rn | $GREP "^default" | $AWK '{print $6}'` | 201 if_defaultroute=`$NETSTAT -rn | $GREP "^default" | $AWK '{print $6}'` |
202else 203 if_defaultroute="x" 204fi 205 206case $reason in 207MEDIUM) 208 ifconfig $interface $medium 209 ifconfig $interface inet -alias 0.0.0.0 $medium >/dev/null 2>&1 --- 72 unchanged lines hidden --- | 202else 203 if_defaultroute="x" 204fi 205 206case $reason in 207MEDIUM) 208 ifconfig $interface $medium 209 ifconfig $interface inet -alias 0.0.0.0 $medium >/dev/null 2>&1 --- 72 unchanged lines hidden --- |