mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
73b9d6ba84
- Update port's infrastructure to new OPTIONS [2] - Make portlint happy with filenames in "files/" [2] PR: 173543 Submitted by: Ingo Flaschberger <if@FreeBSD.org> Patch by: Ingo Flaschberger <if@FreeBSD.org> [1] "Alexey V. Degtyarev" <alexey@renatasystems.org> (maintainer) [2]
25 lines
687 B
Plaintext
25 lines
687 B
Plaintext
--- examples/bsd/vip-down.sh.orig 2006-05-27 20:38:40.000000000 +0000
|
|
+++ examples/bsd/vip-down.sh 2010-05-30 20:40:19.000000000 +0000
|
|
@@ -1,4 +1,21 @@
|
|
#! /bin/sh
|
|
+
|
|
+if [ -z "$1" -o -z "$2" ]; then
|
|
+ cat <<EOF
|
|
+Usage: ${0##*/} interface virtual-address [if-keep-ip]
|
|
+ interface - interface name where virtual IP-address to be assigned;
|
|
+ virtual-address - virtual IP-address;
|
|
+ if-keep-ip - interface name where virtual IP-address should be kept
|
|
+ when ucarp changes state to BACKUP;
|
|
+
|
|
+EOF
|
|
+ exit 255
|
|
+fi
|
|
+
|
|
exec 2> /dev/null
|
|
|
|
/sbin/ifconfig "$1" -alias "$2"
|
|
+
|
|
+if [ ! -z "$3" ]; then
|
|
+ /sbin/ifconfig "$3" alias "$2" netmask 255.255.255.255
|
|
+fi
|