Revision 3858, 319 bytes checked in by daisuke, 13 years ago (diff) |
---|
Rev | Line | |
---|---|---|
[3856] | 1 | #!/bin/bash |
2 | # bring up ip alias interface | |
3 | . /etc/rc.d/init.d/functions | |
4 | ||
5 | iface="$1" | |
6 | action="$2" | |
7 | ||
8 | if [ "$action" = "up" ]; then | |
9 | ls /etc/sysconfig/network-scripts/ifcfg-$iface:* | \ | |
10 | sed -e ${__sed_discard_ignored_files} | \ | |
11 | cut -d: -f2 | \ | |
12 | while read ALIAS ;do | |
13 | /sbin/ifup $iface:$ALIAS | |
14 | done | |
15 | fi |