From 4492b9b35b89ecedb1a4817b6658cfc34a58c360 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Mon, 21 Jan 2013 10:16:21 -0500 Subject: [PATCH] tossing some anachronistic scripts that don't work any more. decided they are not worth trying to fix for an effect that is pointless; when we ran on sun workstations, they always logged out to the terminal, and that's where this script would leave a nice message displayed on the screen. these days people just never log out of X, which is fine, but it makes this kind of hack meaningless. --- scripts/users/byejob.sh | 45 ------------------------------------- scripts/users/byemessage.sh | 41 --------------------------------- scripts/users/goodbye.sh | 13 ++++++----- 3 files changed, 7 insertions(+), 92 deletions(-) delete mode 100644 scripts/users/byejob.sh delete mode 100644 scripts/users/byemessage.sh diff --git a/scripts/users/byejob.sh b/scripts/users/byejob.sh deleted file mode 100644 index e97e079b..00000000 --- a/scripts/users/byejob.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash - -# this program is run in the background to show a bye message on the console. - -source "$FEISTY_MEOW_SCRIPTS/core/functions.sh" - -export LIGHTWEIGHT_INIT=true # make sure we just get our variables. -source $HOME/yeti/scripts/launch_feisty_meow.sh -export host=$(hostname) - -# use this to always print the message. -# export hostlist=$host - -# only print on a few... -export hostlist='chandra ducky equanimity gulliver hamstergate \ - mycroft mrowrt numenor shaggy simmy slowboat velma wolfe \ -\ - dervish frylock lagomorph shakezula ' -#hmmm: this hostlist is highly dependent on my own favorite host names. -# to commoditize this, we should instead use a config file for the list. - -# set our domain name based on what's found in the resolv.conf file, where -# dns info is often found. -DOMAIN_NAME=$(grep -i search >$HOME/host_matched_in_byejob.txt - ( /bin/bash <$FORTUNE_TO_SHOW -#####echo >>$FORTUNE_TO_SHOW # first blank line in the file. -# add lots of blank lines. -for ((i=0; i<100; i++)); do echo >>$FORTUNE_TO_SHOW; done -# drop in a fortune cookie. -$BINDIR/nechung >>$FORTUNE_TO_SHOW -# a couple extra blank lines. -for i in 1 2 3; do echo >>$FORTUNE_TO_SHOW; done -# and a reprinting of a login menu, since that's actually where we're -# intended to leave the machine at. -if [ -f /etc/issue.net ]; then - cat /etc/issue.net >>$FORTUNE_TO_SHOW -elif [ -f /etc/issue ]; then - cat /etc/issue >>$FORTUNE_TO_SHOW -fi -echo -ne "$(hostname) login: " >>$FORTUNE_TO_SHOW - -# clear the screen, if we can. -clear_console - -# we have to do extra processing to send the file out to the console. -tr '\n' '\a' <$FORTUNE_TO_SHOW | sed -r -e 's/\a/\r\n/g' >$TARGET_CONSOLE - -# clean up. -/bin/rm $FORTUNE_TO_SHOW - diff --git a/scripts/users/goodbye.sh b/scripts/users/goodbye.sh index 5fe91048..674a1197 100644 --- a/scripts/users/goodbye.sh +++ b/scripts/users/goodbye.sh @@ -1,11 +1,12 @@ #!/bin/bash -bash $FEISTY_MEOW_SCRIPTS/users/byemessage.sh -nohup bash $FEISTY_MEOW_SCRIPTS/users/byejob.sh >/dev/null 2>&1 +# just prints a message before terminal exit. -if [ -f $TMP/trash.last_keep_awake_process ]; then - kill -9 $(cat $TMP/trash.last_keep_awake_process) - \rm $TMP/trash.last_keep_awake_process -fi +source $FEISTY_MEOW_SCRIPTS/core/functions.sh + +nechung + +# quick pause to reflect. +sleep 2 \exit 0 -- 2.34.1