|
|
A generic script to change the login banner
For the fun of it (and the practice), I decided to wrap part of this hint up into a script. I called it loginbanner (only because banner is already taken), and saved it in ~/bin. Pretty straight forward. I haven't tested it extensively, so it may choke in unusual situations.
Ignore the centered text part...
I had planned to include script for centering the text based on a fixed character width, but abandoned the idea when I realized that the font that appears in the login window is not mono-spaced. If it had been, I was going to search for a script I remembered seeing somewhere that would pad some text with spaces to center it within a given number of columns.
Slightly more refined version
In case anyone is interested in using this script (turns out I use it everyday since I don't care for the fortunes that the original hint produces), here's a slightly more refined version that removes unused code and adds a little more user friendliness to the UI:
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.14 seconds |
|