Skip to content

Instantly share code, notes, and snippets.

@manueldev
Last active October 26, 2023 09:01
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manueldev/1b4ebc0cc31a9815f705c6cfa2b8a715 to your computer and use it in GitHub Desktop.
Save manueldev/1b4ebc0cc31a9815f705c6cfa2b8a715 to your computer and use it in GitHub Desktop.
install etherwake on edgerouter +2
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:
#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