Last active
October 26, 2023 09:01
-
-
Save manueldev/1b4ebc0cc31a9815f705c6cfa2b8a715 to your computer and use it in GitHub Desktop.
install etherwake on edgerouter +2
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
delete system image | |
configure | |
set system package repository stretch components 'main contrib non-free' | |
set system package repository stretch distribution stretch | |
set system package repository stretch url http://http.us.debian.org/debian | |
commit ; save | |
exit | |
sudo apt-get update | |
sudo apt-get install etherwake | |
usage: | |
sudo etherwake -i eth4 MAC_DEVICE_WITH: |
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
#Replace interface and mac address | |
cd /config/scripts/post-config.d | |
rm wake-pc | |
printf "#!/bin/bash\n" >> wake-pc | |
printf "sudo ping -c 30 127.0.0.1\n" >> wake-pc | |
printf "sudo /usr/sbin/etherwake -D -i eth4 MAC:ADRESS:HERE\n" >> wake-pc | |
printf "logger -p NOTICE -t wake-pc \"Running etherwake\"\n" >> wake-pc | |
chmod +x wake-pc | |
cat wake-pc | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment