Skip to content

Instantly share code, notes, and snippets.

@hartmut-co-uk
Created January 15, 2017 10:18
Show Gist options
  • Save hartmut-co-uk/e92cb3c3aa2f9604687fb15c53d3c4ea to your computer and use it in GitHub Desktop.
Save hartmut-co-uk/e92cb3c3aa2f9604687fb15c53d3c4ea to your computer and use it in GitHub Desktop.
Script to wakeup QNAP NAS (macOS Automator)
#!/bin/bash
### Script to wakeup QNAP NAS (well not much script there.. mostly to use via Automator)
# requires 'wakeonlan' (installed via Homebrew -> 'brew install wakeonlan')
/usr/local/bin/wakeonlan {{NAS_MAC1}}
### optional: 2nd eth adapter..
#/usr/local/bin/wakeonlan {{NAS_MAC2}}
# Note: Using Mac OS 'Automator' it's easy to create a QWake.app
# Steps:
# 1. Start Automator, new document 'Application'
# 2. Add Action 'Run Shell Script'
# 3. Paste the content of this file
# 4. Save as Application QHalt.app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment