summaryrefslogtreecommitdiffstats
path: root/main/ucarp/vip-up-default.sh
blob: 763a56170a85d4f95f55df5897ec90dce3fb066f (plain)
1
2
3
4
5
6
7
#! /bin/sh
exec 2> /dev/null

/sbin/ip addr add "$2"/"$3" dev "$1"

# or alternatively:
# /sbin/ifconfig "$1":254 "$2" netmask "$3"