Added support for new excludedir configuration option.
[backups/.git] / scripts / eject-disk.sh
index 713e45ab3d7d3026bc25446eeda4d961d9561511..ca2795cc1051266c84332b2287f15bed428dfacc 100755 (executable)
@@ -1,9 +1,16 @@
 #!/bin/sh
 
-export PATH=$(dirname $0):/bin:/usr/bin
+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 $burnlockfile
+rm -f $noburnfile