Skip to content

Commit

Permalink
updated host_status script
Browse files Browse the repository at this point in the history
1. host_status.in: add delay when resetting LCD display
2. host_status.in: eliminate duplicate ip addresses
  • Loading branch information
mbhangui committed Mar 22, 2024
1 parent d28b112 commit 03098b2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions doc/ChangeLog
Expand Up @@ -52,6 +52,9 @@ Release 1.1 Start 30/06/2022 End --/--/----
- 21/03/2024
33. create_services: Create FORCE_UMOUNT env variable
34. pistopstart: Display umount method in log
- 23/03/2024
34. host_status.in: add delay when resetting LCD display
35. host_status.in: eliminate duplicate ip addresses

* Thu Jun 30 2022 18:10:06 IST Manvendra Bhangui <pistop@indimail.org> 1.0-1.1%{?dist}
Release 1.0 Start 28/08/2020 End 30/06/2022
Expand Down
11 changes: 9 additions & 2 deletions host_status.in
@@ -1,6 +1,6 @@
#!/bin/sh
#
# $Id: host_status.in,v 1.1 2023-06-30 17:09:52+05:30 Cprogrammer Exp mbhangui $
# $Id: host_status.in,v 1.2 2024-03-23 02:02:44+05:30 Cprogrammer Exp mbhangui $
#

set_command()
Expand Down Expand Up @@ -52,7 +52,10 @@ case "$1" in
echo "Sending load information to LCD $cmd"
load=$(cat /proc/loadavg|awk '{print $1" "$2" "$3}')
echo "0 0 3:Load $load" | sh -c "$cmd"
echo "1 0 0:$(hostname -I)" | sh -c "$cmd"
if [ -n "$LCD_FIFO" ] ; then
sleep 0.5
fi
echo "1 0 0:$(hostname -I)" | sort -u | sh -c "$cmd"
echo "2 0 0:$(date +"%d-%m-%y %H:%M:%S")" | sh -c "$cmd"
echo "3 0 0:$(uname -n) On" | sh -c "$cmd"
;;
Expand All @@ -64,6 +67,10 @@ esac

#
# $Log: host_status.in,v $
# Revision 1.2 2024-03-23 02:02:44+05:30 Cprogrammer
# add delay when resetting LCD display
# eliminate duplicate ip addresses
#
# Revision 1.1 2023-06-30 17:09:52+05:30 Cprogrammer
# Initial revision
#
Expand Down

0 comments on commit 03098b2

Please sign in to comment.