3 # a frivolous but useful script that shows information about the local
4 # computer in terms of an adventure game inventory listing.
6 source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
9 if [ $OPERATING_SYSTEM == "UNIX" ]; then
10 which lsb_release &>/dev/null
12 codename="$(lsb_release -cs 2>/dev/null)"
15 if [ -z "$codename" ]; then
19 # test if this uptime knows the -p flag.
25 up="$(uptime | awk '{print $2 " " $1 }')"
29 echo "it is $(date +"%A at %H%M hours on day %e of the %B moon in the gregorian year %Y" | tr A-Z a-z) and our intrepid adventurer $USER is exploring a computer named $(hostname) (code-name $codename) and has found that the machine's OS platform is $(uname -m) and its current incarnation has been ${up}." | splitter
30 #hmmm: splitter not accepting these args properly right now:
31 #--mincol 2 --maxcol 40
33 #echo '++++++++++++++++++++++++++++++++++++++++++'
35 echo "the following things appear to be lying around here..."
39 #echo '++++++++++++++++++++++++++++++++++++++++++'
41 echo "there appear to be these entities on this host..."