summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-05-20 17:47:06 +0000
committerobrien <obrien@FreeBSD.org>2000-05-20 17:47:06 +0000
commit9fe11200434b3702318640556d51608d4981ed59 (patch)
treee04d3266f7c647b3c9b55bf1bb09a37358edc9e4 /contrib
parent5921014a4206a956eea8c62fd066bed8bd3072dd (diff)
downloadFreeBSD-src-9fe11200434b3702318640556d51608d4981ed59.zip
FreeBSD-src-9fe11200434b3702318640556d51608d4981ed59.tar.gz
Our `ifconfig' syntax uses "alias" not "-alias".
Submitted by: Per Kristian Hove <Per.Hove@math.ntnu.no>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/isc-dhcp/client/scripts/freebsd16
1 files changed, 8 insertions, 8 deletions
diff --git a/contrib/isc-dhcp/client/scripts/freebsd b/contrib/isc-dhcp/client/scripts/freebsd
index 41bf9ac..d872826 100755
--- a/contrib/isc-dhcp/client/scripts/freebsd
+++ b/contrib/isc-dhcp/client/scripts/freebsd
@@ -54,14 +54,14 @@ fi
if [ x$reason = xMEDIUM ]; then
ifconfig $interface $medium
- ifconfig $interface inet -alias 0.0.0.0 $medium >/dev/null 2>&1
+ ifconfig $interface inet alias 0.0.0.0 $medium >/dev/null 2>&1
sleep 1
exit_with_hooks 0
fi
if [ x$reason = xPREINIT ]; then
if [ x$alias_ip_address != x ]; then
- ifconfig $interface inet -alias $alias_ip_address > /dev/null 2>&1
+ ifconfig $interface inet alias $alias_ip_address > /dev/null 2>&1
route delete $alias_ip_address 127.0.0.1 > /dev/null 2>&1
fi
ifconfig $interface inet 0.0.0.0 netmask 0.0.0.0 \
@@ -85,11 +85,11 @@ if [ x$reason = xBOUND ] || [ x$reason = xRENEW ] || \
fi
if [ x$old_ip_address != x ] && [ x$alias_ip_address != x ] && \
[ x$alias_ip_address != x$old_ip_address ]; then
- ifconfig $interface inet -alias $alias_ip_address > /dev/null 2>&1
+ ifconfig $interface inet alias $alias_ip_address > /dev/null 2>&1
route delete $alias_ip_address 127.0.0.1 > /dev/null 2>&1
fi
if [ x$old_ip_address != x ] && [ x$old_ip_address != x$new_ip_address ]; then
- ifconfig $interface inet -alias $old_ip_address $medium
+ ifconfig $interface inet alias $old_ip_address $medium
route delete $old_ip_address 127.1 >/dev/null 2>&1
for router in $old_routers; do
route delete default $router >/dev/null 2>&1
@@ -138,11 +138,11 @@ fi
if [ x$reason = xEXPIRE ] || [ x$reason = xFAIL ]; then
if [ x$alias_ip_address != x ]; then
- ifconfig $interface inet -alias $alias_ip_address > /dev/null 2>&1
+ ifconfig $interface inet alias $alias_ip_address > /dev/null 2>&1
route delete $alias_ip_address 127.0.0.1 > /dev/null 2>&1
fi
if [ x$old_ip_address != x ]; then
- ifconfig $interface inet -alias $old_ip_address $medium
+ ifconfig $interface inet alias $old_ip_address $medium
route delete $old_ip_address 127.1 >/dev/null 2>&1
for router in $old_routers; do
route delete default $router >/dev/null 2>&1
@@ -165,7 +165,7 @@ fi
if [ x$reason = xTIMEOUT ]; then
if [ x$alias_ip_address != x ]; then
- ifconfig $interface inet -alias $alias_ip_address > /dev/null 2>&1
+ ifconfig $interface inet alias $alias_ip_address > /dev/null 2>&1
route delete $alias_ip_address 127.0.0.1 > /dev/null 2>&1
fi
ifconfig $interface inet $new_ip_address $new_netmask_arg \
@@ -201,7 +201,7 @@ if [ x$reason = xTIMEOUT ]; then
exit_with_hooks 0
fi
fi
- ifconfig $interface inet -alias $new_ip_address $medium
+ ifconfig $interface inet alias $new_ip_address $medium
for router in $old_routers; do
route delete default $router >/dev/null 2>&1
done
OpenPOWER on IntegriCloud