From 626d5f95485e5a7c1ec76a4696cc92ca03bb4018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 6 Dec 2022 19:42:01 +0100 Subject: Add wake script for both desktops --- .ignore-ridcully | 2 -- install | 7 +++++-- local/bin/wake-desktop | 2 -- local/bin/wake-error | 2 ++ local/bin/wake-ridcully | 2 ++ private | 2 +- 6 files changed, 10 insertions(+), 7 deletions(-) delete mode 100644 .ignore-ridcully delete mode 100755 local/bin/wake-desktop create mode 100755 local/bin/wake-error create mode 100755 local/bin/wake-ridcully diff --git a/.ignore-ridcully b/.ignore-ridcully deleted file mode 100644 index c550171..0000000 --- a/.ignore-ridcully +++ /dev/null @@ -1,2 +0,0 @@ -wake-desktop -nix diff --git a/install b/install index 0af5716..f8bc34b 100755 --- a/install +++ b/install @@ -122,6 +122,9 @@ if ask "elektroline" "Install Elektroline scripts"; then inst local/bin/elektroline00 ~/.local/bin/elektroline00 fi -if ask "wake-desktop" "Install wake-desktop"; then - inst local/bin/wake-desktop ~/.local/bin/wake-desktop +if ask "wake" "Install wake-* scripts"; then + [ "$(hostname)" = "ridcully" ] || \ + inst local/bin/wake-ridcully ~/.local/bin/wake-ridcully + [ "$(hostname)" = "errol" ] || \ + inst local/bin/wake-errol ~/.local/bin/wake-errol fi diff --git a/local/bin/wake-desktop b/local/bin/wake-desktop deleted file mode 100755 index 18c8762..0000000 --- a/local/bin/wake-desktop +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -exec ssh turris.adamkovi etherwake -i br-lan 70:85:c2:4a:59:f2 diff --git a/local/bin/wake-error b/local/bin/wake-error new file mode 100755 index 0000000..80f6965 --- /dev/null +++ b/local/bin/wake-error @@ -0,0 +1,2 @@ +#!/bin/sh +exec ssh omnia.spt etherwake -i br-lan a8:a1:59:10:32:c4 diff --git a/local/bin/wake-ridcully b/local/bin/wake-ridcully new file mode 100755 index 0000000..a29ad64 --- /dev/null +++ b/local/bin/wake-ridcully @@ -0,0 +1,2 @@ +#!/bin/sh +exec ssh omnia.adm etherwake -i br-lan 70:85:c2:4a:59:f2 diff --git a/private b/private index fcdc0a0..f4e35ee 160000 --- a/private +++ b/private @@ -1 +1 @@ -Subproject commit fcdc0a075885f2190a56f5251908035945ce48dc +Subproject commit f4e35eefe069d3348a7e4eff9d5d1553ba30e77b -- cgit v1.2.3