#!/usr/bin/env bash

# *** [ Ansible managed: DO NOT EDIT DIRECTLY ] ***

cl101="80:ee:73:c5:e9:b9"
cl101_alt="70:71:bc:72:25:98"
cl102="80:ee:73:c5:d3:87"
cl103="80:ee:73:bb:da:93"
cl103_alt="70:71:bc:72:24:cc"
cl104="74:d4:35:ac:78:19"
cl105_alt="70:71:bc:72:25:93"
cl105="80:ee:73:c5:2c:97"
cl106_alt="70:71:bc:72:26:e4"
cl106="80:ee:73:c5:2d:8d"
cl107_alt="e0:69:95:45:71:4b"
cl107="80:ee:73:c5:2e:83"
cl108_alt="70:71:bc:72:25:85"
cl108="80:ee:73:d0:a3:30"
cl109="38:60:77:39:f2:49"
cl110="38:60:77:4e:34:fe"

if [ $# = "1" ]; then
   _nic=`eval eval echo  '$'$1`
   wakeonlan $_nic
else
   wakeonlan $cl101
   sleep 2
   wakeonlan $cl101_alt
   sleep 2
   wakeonlan $cl102
   sleep 2
   wakeonlan $cl103
   sleep 2
   wakeonlan $cl103_alt
   sleep 2
   wakeonlan $cl104
   sleep 2
   wakeonlan $cl105
   sleep 2
   wakeonlan $cl105_alt
   sleep 2
   wakeonlan $cl106
   sleep 2
   wakeonlan $cl106_alt
   sleep 2
   wakeonlan $cl107
   sleep 2
   wakeonlan $cl107_alt
   sleep 2
   wakeonlan $cl108
   sleep 2
   wakeonlan $cl108_alt
   sleep 2
   wakeonlan $cl109
   sleep 2
   wakeonlan $cl110
   sleep 2
fi


exit 0

