. config.sh
# source the system specific configuration
-if [ -f /etc/lsbackups.conf ]
-then
- . /etc/lsbackups.conf
-fi
+[ -f /etc/lsbackups.conf ] && . /etc/lsbackups.conf
# If the noburn file is there then don't burn.
[ -f "$noburnfile" ] && exit 0
. config.sh
# source the system specific configuration
-if [ -f /etc/lsbackups.conf ]
-then
- . /etc/lsbackups.conf
-fi
+[ -f /etc/lsbackups.conf ] && . /etc/lsbackups.conf
# burn-imgs.sh needs to be detached so that it can stop and start cron without
# dying itself.
. config.sh
# source the system specific configuration
-if [ -f /etc/lsbackups.conf ]
-then
- . /etc/lsbackups.conf
-fi
+[ -f /etc/lsbackups.conf ] && . /etc/lsbackups.conf
if [ -n "$(find $lastbackupfile -mtime +14)" -o -n "$(cat $statusfile | grep -i incomplete)" ]; then
echo "Running backups from cron..."
. config.sh
# source the system specific configuration
-if [ -f /etc/lsbackups.conf ]
-then
- . /etc/lsbackups.conf
-fi
+[ -f /etc/lsbackups.conf ] && . /etc/lsbackups.conf
eject $dev
. config.sh
# source the system specific configuration
-if [ -f /etc/lsbackups.conf ]
-then
- . /etc/lsbackups.conf
-fi
+[ -f /etc/lsbackups.conf ] && . /etc/lsbackups.conf
# file locations and other values
today=$(date +%Y%m%d%H%M%S)