-
-
Save kazu634/2291443 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Mac側で必要になる作業: | |
# brew install wakeonlan | |
# 起動させる側で、マジックパケットを受信するために設定を行う必要がある | |
# Linuxの場合は、 ethtool をインストールし、設定を実施する | |
# See: http://tukaikta.blog135.fc2.com/blog-entry-104.html | |
# Exit 1 if the number of arguments is not 1. | |
if [ $# -ne 1 ]; then | |
exit 1 | |
fi | |
case $1 in | |
faith634) | |
wakeonlan 8c:89:a5:12:9f:41 | |
exit 0 | |
;; | |
*) | |
exit 0 | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment