Page MenuHomeFreeBSD

Add getty/gettytab capability to generate an initial message dynamically.
ClosedPublic

Authored by dab on Aug 23 2017, 2:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 16, 3:35 PM
Unknown Object (File)
Sat, Apr 6, 10:45 PM
Unknown Object (File)
Sat, Apr 6, 8:37 PM
Unknown Object (File)
Sat, Apr 6, 1:08 PM
Unknown Object (File)
Dec 23 2023, 3:47 AM
Unknown Object (File)
Dec 22 2023, 10:22 PM
Unknown Object (File)
Nov 18 2023, 3:06 PM
Unknown Object (File)
Nov 18 2023, 1:07 PM
Subscribers

Details

Summary

This modification adds a new gettytab(5) option (iM) to specify a program to run in order to generate the initial (banner) message.

Test Plan

Install modified getty on system. Modify /etc/gettytab to specify the iM option. Logout. Get new login prompt. Verify that the login prompt is preceded by the string produced by the program specified for the iM option.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Example run:

Wed Aug 23 10:02:42 CDT 2017: iM file

FreeBSD/amd64 (localhost)

login: Wed Aug 23 10:02:44 CDT 2017: iM file

FreeBSD/amd64 (localhost)

login:

The script specified by iM in /etc/gettytab for this system:

#!/bin/sh
echo "$(date): iM file"

@vangyzen gave his approval out-of-band; he is having some Phabricator access issues right now and suggested I mention his approval here.

wblock added a subscriber: wblock.

Man page changes look fine to me.

This revision is now accepted and ready to land.Aug 25 2017, 2:36 PM
This revision was automatically updated to reflect the committed changes.