🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs.uucp
Article #550

Adding hushlogin to system V

#550
From: Ronald O. Christian
Date: Thu, 13 Feb 1986 00:21
52 lines
2127 bytes

A trivial fix for system V users that don't have the
'.hushlogin' feature.

Briefly, there are cases where the message of the day will
screw up uucp transfers.  I'm not really sure whether this
is due to escape codes present (for standout mode, etc.) or
due to particular groups of words in the MOTD.  On BSD systems
at least, if you put a .hushlogin in uucp's home directory,
you supress the message of the day, and the problem goes away.
(The code is in login.c.)

On sysV systems, (at least on ours) there is no such feature.
You can, however add the feature, even if you've only got
a binary license.  Edit the shell script /etc/profile, and
replace the motd and mail notification with the following code
(right after the case (-sh | -rsh) statement):

	trap : 1 2 3
	if test -f $HOME/.hushlogin
	then
		break
	else
		cat /etc/motd
		trap "" 1 2 3
		if mail -e
		then echo "you have mail"
		fi
		if [ $LOGNAME != root ]
		then
			news -n
		fi
	fi
	;;


Notice that this also supresses the 'you have mail' message.
There might be a more elegent way to do this. For instance,
there *must* be a better way to reverse the sense of the test
than to use 'break', but the above works here.  I'm satisfied.
Hope this helps someone.


			Ron
-- 
--
		Ronald O. Christian (Fujitsu America Inc., San Jose, Calif.)
		ihnp4!pesnta!fai!ronc

Oliver's law of assumed responsibility:
	"If you are seen fixing it, you will be blamed for breaking it."
Technical Details
Message-ID: <73@fai.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!decwrl!sun!saber!qubix!wjvax!fai!ronc

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.3 System V-beta 12/2/85; site fai.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!decwrl!sun!saber!qubix!wjvax!fai!ronc
From: ronc@fai.UUCP (Ronald O. Christian)
Newsgroups: net.bugs.uucp
Subject: Adding hushlogin to system V
Message-ID: <73@fai.UUCP>
Date: Wed, 12-Feb-86 19:21:59 EST
Article-I.D.: fai.73
Posted: Wed Feb 12 19:21:59 1986
Date-Received: Sat, 15-Feb-86 05:05:43 EST
Reply-To: ronc@fai.UUCP (Ronald O. Christian)
Organization: Fujitsu America, Inc., San Jose, CA
Lines: 52