[391] in SIPB_Linux_Development
xlogin, motd when you don't have AFS
daemon@ATHENA.MIT.EDU (Jim Haynes)
Fri Feb 4 16:56:28 1994
From: haynes@cats.ucsc.edu (Jim Haynes)
Date: Fri, 4 Feb 1994 13:55:41 -0800
To: linux-dev@MIT.EDU
This is a hack we made at UCSC where we don't have AFS, to use the old
get_message service instead for the global motd. Perhaps you can rearrange
this into something less ugly and put it into your version of xlogin.
Like maybe test whether you can access the /afs/... motd and if you can't
then try the get_message trick with a local filename.
*** xlogin.c.mit Fri Feb 4 13:44:45 1994
--- xlogin.c.ucsc Fri Feb 4 13:44:22 1994
***************
*** 56,62 ****
#endif
#ifndef MOTD_FILENAME
! #define MOTD_FILENAME "/afs/athena.mit.edu/system/config/motd/login.76"
#endif
#define OWL_AWAKE 0
--- 46,52 ----
#endif
#ifndef MOTD_FILENAME
! #define MOTD_FILENAME "/var/tmp/gmotd"
#endif
#define OWL_AWAKE 0
***************
*** 652,658 ****
--- 647,657 ----
Arg args[1];
char buf[10000], *temp, *s, *d;
int fid, len, do_g_motd, do_l_motd;
+ char gmotd[64];
+ strcpy(gmotd, "/usr/athena/bin/get_message > ");
+ strcat(gmotd, MOTD_FILENAME);
+ system(gmotd);
if (!motdtext) {
motdtext = WcFullNameToWidget(appShell, "*motd");