summaryrefslogtreecommitdiff
path: root/lastBackups.in
diff options
context:
space:
mode:
Diffstat (limited to 'lastBackups.in')
-rwxr-xr-xlastBackups.in21
1 files changed, 20 insertions, 1 deletions
diff --git a/lastBackups.in b/lastBackups.in
index 6366058..e0cefd2 100755
--- a/lastBackups.in
+++ b/lastBackups.in
@@ -2,7 +2,26 @@
# lastBackups version #VERSION#
-. #ETCDIR#/backup.conf
+[ -r "#ETCDIR#/backup.conf" ] && \
+ . "#ETCDIR#/backup.conf"
+
+if [ $# -eq 1 ]
+then
+ if [ "$1" == "--help" ]
+ then
+ >&2 echo \
+'Usage: lastBackups
+Show information about date of last backups and warn about outdated ones.
+
+Options:
+#HELPTEXT# #'
+ exit 0
+ elif [ "$1" == "--version" ]
+ then
+ >&2 echo '#VERSION#'
+ exit 0
+ fi
+fi
unset namen
unset veraltet