From abbf3a14127758ed44f31d0d5b14c0015c813ed5 Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Sat, 4 Nov 2023 22:19:05 +0000 Subject: [PATCH] Add pushover-client config (encrypted) and shutdown/bootup notification. --- etc/pushover-client/.gitignore | 1 + etc/pushover-client/default.gpg | Bin 0 -> 172 bytes etc/rc.local | 2 ++ etc/rc.shutdown | 2 ++ 4 files changed, 5 insertions(+) create mode 100644 etc/pushover-client/.gitignore create mode 100644 etc/pushover-client/default.gpg diff --git a/etc/pushover-client/.gitignore b/etc/pushover-client/.gitignore new file mode 100644 index 0000000..5fa4aa9 --- /dev/null +++ b/etc/pushover-client/.gitignore @@ -0,0 +1 @@ +/default diff --git a/etc/pushover-client/default.gpg b/etc/pushover-client/default.gpg new file mode 100644 index 0000000000000000000000000000000000000000..28d2068cd691b1377d0481d335f34b93e3548749 GIT binary patch literal 172 zcmV;d08{^r4Fm}T2##-oxKr9mN%GR00jK&L9!_HdkP85HcXe5-jNut$Pe<>;Wyc6| z;b?&%l14rVxAtX|3N*`{qFCdXRH6EWc@Kc8SKg?;s|{dkv!PzEf|B`p@D}8Cj0Ot$ zUp}Unvjho3rMh&K`~XZ`1aF*$X7^VvdMbf7-92n~eU&IHcXHe*$Vzgb68D7Y?hv%v aV%)YXw8HIAln;REU*)w(mME{f^N&+yvQm)% literal 0 HcmV?d00001 diff --git a/etc/rc.local b/etc/rc.local index 1c4bdfe..d41f523 100755 --- a/etc/rc.local +++ b/etc/rc.local @@ -3,3 +3,5 @@ # # This is run by runit in stage 2 before the services are executed # (see /etc/runit/2). + +[[ -x /opt/bin/pushover-client ]] && /opt/bin/pushover-client -p -1 -m "Boot up: ${HOSTNAME%%.*}" diff --git a/etc/rc.shutdown b/etc/rc.shutdown index 6ab7932..c21e4fa 100755 --- a/etc/rc.shutdown +++ b/etc/rc.shutdown @@ -3,3 +3,5 @@ # # This is run by runit in stage 3 after the services are stopped # (see /etc/runit/3). + +[[ -x /opt/bin/pushover-client ]] && /opt/bin/pushover-client -p -1 -m "Shutting down: ${HOSTNAME%%.*}"