From 42f619457d58e3c34237d7d3fe55d5bb19a2ba90 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Sun, 31 May 2020 20:30:53 -0400 Subject: "hostname.cryptonomic.net" shows the cryptonomic hostname of the current system --- src/hostname.cryptonomic.net | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100755 src/hostname.cryptonomic.net diff --git a/src/hostname.cryptonomic.net b/src/hostname.cryptonomic.net new file mode 100755 index 0000000..913948a --- /dev/null +++ b/src/hostname.cryptonomic.net @@ -0,0 +1,43 @@ +#!/bin/dash + +die() { echo "$0: Error: $*" >&2; exit 1; } + +DEFAULT_PEM_FILE=/etc/ssh/ssh_host_rsa_key.pub +if [ "$1" = -h ] +then + cat >&2 <