This follows the sourcing of config.sh, allowing overrides of the defaults.
export PATH=$(dirname $0):/bin:/usr/bin:/sbin
cronstopstart="/etc/init.d/cron"
+
+# source the default configuration
. config.sh
+# source the system specific configuration
+if [ -f /etc/lsbackups.conf ]
+then
+ . /etc/lsbackups.conf
+fi
+
# If the noburn file is there then don't burn.
[ -f "$noburnfile" ] && exit 0
export PATH=$(dirname $0):/bin:/usr/bin:/sbin
+# source the default configuration
. config.sh
+# source the system specific configuration
+if [ -f /etc/lsbackups.conf ]
+then
+ . /etc/lsbackups.conf
+fi
+
# burn-imgs.sh needs to be detached so that it can stop and start cron without
# dying itself.
export PATH=$(dirname $0):/bin:/usr/bin:/sbin
+# source the default configuration
. config.sh
+# source the system specific configuration
+if [ -f /etc/lsbackups.conf ]
+then
+ . /etc/lsbackups.conf
+fi
+
if [ -n "$(find $lastbackupfile -mtime +14)" -o -n "$(cat $statusfile | grep -i incomplete)" ]; then
echo "Running backups from cron..."
setsid pack-image.sh
export PATH=$(dirname $0):/bin:/usr/bin:/sbin
+# source the default configuration
. config.sh
+# source the system specific configuration
+if [ -f /etc/lsbackups.conf ]
+then
+ . /etc/lsbackups.conf
+fi
+
eject $dev
rm -f $noburnfile
export PATH=$scriptsdir:/bin:/usr/bin:/sbin:/usr/sbin
+# source the default configuration
. config.sh
+# source the system specific configuration
+if [ -f /etc/lsbackups.conf ]
+then
+ . /etc/lsbackups.conf
+fi
+
# file locations and other values
today=$(date +%Y%m%d%H%M%S)
isoimage="$imagedir/$today.img"