I have created a consent banner and wrote a script that I want called after
the banner has been displayed. The user is then forced to enter "y" or "n"
to the consent statement.
How do I invoke the script after the banner has been displayed?
For example, /etc/ssh/sshd.conf has /etc/banner defined. So when I ssh into
the local box, I see the banner. I want to take it a step further and prompt
a yes or no answer.
I tried putting it in /etc/profile, that did not work because GDM could not
start. I tried /etc/bashrc, but that did not work well either.