Commit ce563d93 authored by Joe Lyons's avatar Joe Lyons

update etherwake to use new interface

parent 7bcd9592
......@@ -16,7 +16,7 @@ fi
# Check if ethers is present
if [[ ! -f /etc/ethers ]]; then
echo "The ethers file is missing. Ensure this machine is in the admin_desktop puppet group."
echo "The ethers file is missing. Ensure this machine has the admin_desktop puppet role."
exit 1
fi
......@@ -25,7 +25,7 @@ if ! [[ $@ == "" ]] ; then
for desk in $@ ; do
if [[ ${desk} =~ "nidesk" ]] ; then
echo " * Waking ${desk}.."
etherwake ${desk}
etherwake -i eno1 ${desk}
sleep 0.1s
else
echo " * Not a desk hostname!"
......@@ -36,7 +36,7 @@ fi
for desk in `grep nidesk /etc/ethers | awk '{print $2}'`; do
echo "Waking ${desk}.."
etherwake ${desk}
etherwake -i eno1 ${desk}
sleep 0.1s
done
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment