projects
/
backups
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Used Carl's super-cool shell script shorthand to source system config file.
[backups/.git]
/
scripts
/
eject-disk.sh
diff --git
a/scripts/eject-disk.sh
b/scripts/eject-disk.sh
index 713e45ab3d7d3026bc25446eeda4d961d9561511..811a4569bbdf0cab3ed6f84260092ba7c38543d2 100755
(executable)
--- a/
scripts/eject-disk.sh
+++ b/
scripts/eject-disk.sh
@@
-1,9
+1,13
@@
#!/bin/sh
#!/bin/sh
-export PATH=$(dirname $0):/bin:/usr/bin
+export PATH=$(dirname $0):/bin:/usr/bin
:/sbin
+# source the default configuration
. config.sh
. config.sh
+# source the system specific configuration
+[ -f /etc/lsbackups.conf ] && . /etc/lsbackups.conf
+
eject $dev
eject $dev
-rm -f $
burnlock
file
+rm -f $
noburn
file