summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-rw-r--r--home/.pubkey.j21
-rwxr-xr-xhome/scripts/system_name.sh6
2 files changed, 4 insertions, 3 deletions
diff --git a/home/.pubkey.j2 b/home/.pubkey.j2
new file mode 100644
index 0000000..e4e3602
--- /dev/null
+++ b/home/.pubkey.j2
@@ -0,0 +1 @@
+{{ pgp.asc }}
diff --git a/home/scripts/system_name.sh b/home/scripts/system_name.sh
index 92b714a..2625293 100755
--- a/home/scripts/system_name.sh
+++ b/home/scripts/system_name.sh
@@ -1,11 +1,11 @@
#!/bin/sh
-platform="$(platform.sh)"
+PLATFORM="${PLATFORM:-`platform.sh`}"
MACHINE="$HOST"
-if [ "$platform" = "osx" ]; then
+if [ "$PLATFORM" = "osx" ]; then
MACHINE="$(scutil --get ComputerName)"
-elif [ "$platform" = "linux" ]; then
+elif [ "$PLATFORM" = "linux" ]; then
MACHINE="$(cat /proc/sys/kernel/hostname)"
fi