aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-aliases
blob: 163492c3ff11185056cffa1e404a903f0d1d9cb3 (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
	    return
	fi
	/etc/sysconfig/network-scripts/ifup $device:$current
	current=`expr $current + 1`
done