summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-01-01 20:17:50 +0100
committerErich Eckner <git@eckner.net>2021-01-01 20:17:50 +0100
commit6fa1b684d2d31209a20ba2ecfc07d66bd8cb9d38 (patch)
tree7d08809ed49d23f393fde0a3ce41e1c334ea1c09
parenteaf371b5831053d510e6cf4edabbdb505734cce5 (diff)
downloadcheck-kernel-6fa1b684d2d31209a20ba2ecfc07d66bd8cb9d38.tar.xz
hostname -> uname -n
-rw-r--r--check-kernel.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/check-kernel.in b/check-kernel.in
index 619e1e2..9bfb962 100644
--- a/check-kernel.in
+++ b/check-kernel.in
@@ -159,7 +159,7 @@ else
if ${reboot}; then
if command -v shutdownasap >/dev/null; then
>&2 printf 'Press enter to reboot %s ...' \
- "$(hostname)"
+ "$(uname -n)"
read s
if [ -z "${s}" ]; then
if command -v screen >/dev/null; then
@@ -174,7 +174,7 @@ else
exit 1
fi
>&2 printf 'Press enter to reboot %s ...' \
- "$(hostname)"
+ "$(uname -n)"
read s
if [ -z "${s}" ]; then
PATH=$PATH:/usr/bin:/usr/sbin:/bin:/sbin reboot