Added class and os alternates

This commit is contained in:
h45h74x committed 2020-05-06 22:06:16 +02:00
1 parent 5a5286b38c
commit 80a58d4669
793 files changed
+63028 -295

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
function wake() {
local config_file="$HOME/.wakeonlan/$1"
if [[ ! -f "$config_file" ]]; then
echo "ERROR: There is no configuration file at \"$config_file\"."
return 1
fi
if (( ! $+commands[wakeonlan] )); then
echo "ERROR: Can't find \"wakeonlan\". Are you sure it's installed?"
return 1
fi
wakeonlan -f "$config_file"
}