~nijaba/ubuntu-server-tips/newtips

« back to all changes in this revision

Viewing changes to contrib/ubuntu-server-tip-motd

  • Committer: Dave Walker
  • Date: 2009-08-25 19:16:28 UTC
  • Revision ID: dave@sabre-20090825191628-mlbajhyzz640movs
Introduced ubuntu-server-tip-motd

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
##
 
3
## ubuntu-server-tip-motu
 
4
## ~~~~~~~~~~~~~~~~~~~~~~
 
5
## Script for retriving the suitable Ubuntu Server Tip fortune 
 
6
## based on the system language, as fortune doesn't have native
 
7
## l10n/i18n support.
 
8
##
 
9
## License: BSD License
 
10
## Copyright © 2009 Dave Walker (Daviey) <DaveWalker@ubuntu.com>
 
11
 
 
12
DISABLE_FILE="$HOME/.cache/fortunes-ubuntu-server-motd.disable"
 
13
 
 
14
if [ -f DISABLE_FILE ] ; then
 
15
  ## Disabled by users request
 
16
  exit 0
 
17
fi
 
18
 
 
19
/usr/bin/ubuntu-server-tip