aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2022-04-17 11:45:00 +0800
committerJesús <heckyel@hyperbola.info>2022-04-17 11:45:00 +0800
commitd872eca384bd7af02b22d0951ded91b83f97cd2c (patch)
tree5ef23628aa7fc8d3d6443fb96a222f78c6a674b3
parent421c805210b0dcfd3f49521f4ac4f43db80be106 (diff)
downloadhyperterm-d872eca384bd7af02b22d0951ded91b83f97cd2c.tar.lz
hyperterm-d872eca384bd7af02b22d0951ded91b83f97cd2c.tar.xz
hyperterm-d872eca384bd7af02b22d0951ded91b83f97cd2c.zip
fix hostname: Unknown host
-rw-r--r--hyperterm/hyperterm.sha5122
-rw-r--r--hyperterm/tools/sysinfo.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/hyperterm/hyperterm.sha512 b/hyperterm/hyperterm.sha512
index 19ae062..c184e95 100644
--- a/hyperterm/hyperterm.sha512
+++ b/hyperterm/hyperterm.sha512
@@ -6,7 +6,7 @@ d02b066e31cd063596fa18e47fd1d5c1f1a19b96c08285b96c1991eb95ff52e9e5096e529540222b
73becd983f15d68b3c459adb4fe847bbbd6343519640aa5e03bb530e61a59ed0545dd3b3621ad82da378bbf15c4d9ee63984004d3bfed26d9d9df643f1524de5 ./tools/proxy.sh
24ee7d176c3ee9e7080e1cc87d02f709d95bfcaad098843ff2d7de5168f8c7559a5ac79fd0da2ce81233ecbcf0b4b776aa60b6603020698482f45b080289fc4c ./tools/aliases.sh
ee1d6d1f9b010318985f7154c2a9173c8f2ab6b637cd3c8d2a9b403e83470e15a273dcff326a84f035660807d7cfcf04efe5abc0495e25ae7339b8807899cf0d ./tools/listuser.sh
-f70697086f001f690f9dc687d97a9a000f0a96ee6cd0b6ac33c407ffb467064d2ce2780852c5d980f2503d9e375487f34ab1b9e81c1d536f367e1914a0c5d399 ./tools/sysinfo.sh
+36534e4fc0a53f589e6ea5833a6a70b49c59389abc4e10d70633b3ede3db3bade12d1d6a94392f94193d34a545f327858e93f6cca9d5d535a588a36eda930d89 ./tools/sysinfo.sh
f760432c3d76befad30588299eb2d1412d77b22fd850ffbd840c72123885d4e916a7e0b16e7048c5dcd6e58fa3bc0807cda18ae64045a7495684ba37109e4b4a ./tools/compress.sh
fab9d339a99c7d2e1809d1c44f533523c6bfcdcc8d63c62b335ce7d4c666c8bdd7ac319316bf71f043163a3a0184e25ecfe1ee32724627424d042a05fa80ce77 ./tools/vconverter.sh
579852abd8378d754fcaccb903c1fefcd4020a578ba63fb3687a08027a937fbbd18e8a1ac22b448edc14445e088134e1e909ae2f3bfea8702df8abf56000daa0 ./tools/ruby.sh
diff --git a/hyperterm/tools/sysinfo.sh b/hyperterm/tools/sysinfo.sh
index e2db9ec..6d89bcd 100644
--- a/hyperterm/tools/sysinfo.sh
+++ b/hyperterm/tools/sysinfo.sh
@@ -5,7 +5,7 @@ function ii() {
__network "$1" > /dev/null 2>&1 # import network
case ${LANG/_*/} in
es)
- printf '%s\e[1;36m%s\e[m\n' "Has iniciado sesión en " "$(hostname -f)"
+ printf '%s\e[1;36m%s\e[m\n' "Has iniciado sesión en " "$(hostname -f 2> /dev/null || hostname)"
printf '\n\e[1;32m%s\e[m\n%s\n' "Información adicional:" "$(uname -a)"
printf '\n\e[1;32m%s\e[m\n%s\n' "Usuarios Conectados:" "$(who -u)"
printf '\n\e[1;32m%s\e[m\n%s\n' "Fecha actual:" "$(date)"
@@ -17,7 +17,7 @@ function ii() {
printf '%s\n' "${MY_ISP:-"No conectado"}"
;;
*)
- printf '%s\e[1;36m%s\e[m\n' "You are logged on " "$(hostname -f)"
+ printf '%s\e[1;36m%s\e[m\n' "You are logged on " "$(hostname -f 2> /dev/null || hostname)"
printf '\n\e[1;32m%s\e[m\n%s\n' "Additionnal information:" "$(uname -a)"
printf '\n\e[1;32m%s\e[m\n%s\n' "Users logged:" "$(who -u)"
printf '\n\e[1;32m%s\e[m\n%s\n' "Current date:" "$(date)"