aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-aliases
blob: 805579e48e16cdbdb03f4efa7e60bf01f48a8123 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# adds aliases of device $1

device=$1
if [ "$device" = "" ]; then
	echo "usage: $0 <net-device>"
	exit 1
fi

current=0
while : ; do
	if [ ! -f /etc/sysconfig/network-scripts/$device:$current ]; then
	    exit 0
	fi
	/etc/sysconfig/network-scripts/ifup $device:$current
	current=`expr $current + 1`
done