#!/bin/shdev=$1mac=$(ifconfig $dev | grep ether | awk '{print $2;}')name=$(grep ^$mac /etc/ifmap | awk '{print $2;}')if [ -n $name ]; then logger Rename interface $dev to $name ifconfig $dev name $namefi
fa:16:3e:04:XX:XX MGMTfa:16:3e:f2:XX:XX EXT50fa:16:3e:6f:XX:XX DEPLOY
# notify 0 {attach 0 { match "system" "IFNET"; match "type" "ATTACH"; media-type "ethernet"; action "/etc/fix-if-name.sh $device-name";};