Listing 2: Addition to /etc/profile required by closeit
1 # No login if closed for maintenance
2
3 FLAGFILE=`cat /nowrite/closeit.filename`
4 export FLAGFILE
5 if [ -f ${HOME}/$FLAGFILE ]
6 then
7 tput clear
8 cat ${HOME}/$FLAGFILE
9 stty -echo;read ANS;stty echo
10 [ "$ANS" = `cat /nowrite/.secret` ] || \
11 exec /bin/false
12 fi
13
14 # ... rest of /etc/profile
|