source: trunk/debathena/config/cluster-login-config/debian/debathena-ttymsg @ 23960

Revision 23960, 263 bytes checked in by broder, 15 years ago (diff)
In cluster-login-config: * Use a persistantly running daemon to keep the ttys open instead of a one-time script. (Trac: #307) * Make sure the ttymsg job gets kicked when cluster-login-config is upgraded.
  • Property svn:executable set to *
Line 
1#!/usr/bin/python
2
3import select
4
5def main():
6    ttys = []
7    for i in xrange(1, 7):
8        ttys.append(open('/dev/tty%d' % i, 'r+'))
9        print >>ttys[-1], 'Press ctrl-alt-F7 to log in'
10
11    select.select([], [], [])
12
13if __name__ == '__main__':
14    main()
Note: See TracBrowser for help on using the repository browser.