my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
352 B

3 years ago
  1. function wake() {
  2. local config_file="$HOME/.wakeonlan/$1"
  3. if [[ ! -f "$config_file" ]]; then
  4. echo "ERROR: There is no configuration file at \"$config_file\"."
  5. return 1
  6. fi
  7. if (( ! $+commands[wakeonlan] )); then
  8. echo "ERROR: Can't find \"wakeonlan\". Are you sure it's installed?"
  9. return 1
  10. fi
  11. wakeonlan -f "$config_file"
  12. }