/usr/bin/ubuntu-server-tip is in fortunes-ubuntu-server 0.5.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #!/bin/sh
##
## ubuntu-server-tip
## ~~~~~~~~~~~~~~~~~
## Script for retriving the suitable Ubuntu Server Tip fortune
## based on the system language, as fortune doesn't have native
## l10n/i18n support.
##
## License: BSD License
## Copyright © 2009 Dave Walker (Daviey) <DaveWalker@ubuntu.com>
# Fortune DB name
FORTUNEDB="ubuntu-server-tips"
# Load the system Locale, if $LANG isn't set
if [ -z $LANG ]; then
. /etc/default/locale
fi
# Create short version of $LANG
LOCALE=$(/bin/echo $LANG | /usr/bin/cut -d . -f 1 )
# If Local version exists use that, or use default fortune file
if [ -f /usr/share/games/fortunes/$LOCALE/$FORTUNEDB ]; then
/usr/games/fortune -u $LOCALE/$FORTUNEDB
else
/usr/games/fortune $FORTUNEDB
fi
## END
|