#!/bin/bash # bring up ip alias interface . /etc/rc.d/init.d/functions iface="$1" action="$2" if [ "$action" = "up" ]; then ls /etc/sysconfig/network-scripts/ifcfg-$iface:* | \ sed -e ${__sed_discard_ignored_files} | \ cut -d: -f2 | \ while read ALIAS ;do /sbin/ifup $iface:$ALIAS done fi