aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-08 01:58:28 -0500
committerDave Reisner <d@falconindy.com>2010-01-08 01:58:28 -0500
commitc4be146c2c408debdc777f049e969fb87e5ef667 (patch)
tree164c85fb7a771afe65e3d7b21541faa368eb9907
parent553bfcb1b01e36f612e81e62fde23c48f01654ed (diff)
downloadsquashfu-c4be146c2c408debdc777f049e969fb87e5ef667.tar.gz
Spacing for readability
-rwxr-xr-xsquashfu8
1 files changed, 5 insertions, 3 deletions
diff --git a/squashfu b/squashfu
index 1cf36d8..d66b8ef 100755
--- a/squashfu
+++ b/squashfu
@@ -117,11 +117,13 @@ usage () {
# - do we have a proper (expected) directory structure in place?
# (Use cd to BKUP_ROOT to avoid issues with brace expansion in a quoted path)
[[ $UID -eq 0 ]] || die Must be root!
+
[[ -w "${BKUP_ROOT}" ]] ||
die "Backup root is not accessible. Please check your setting in /etc/squashfu"
+
unmount_all
+
cd "$BKUP_ROOT" && mkdir -p {rw,ro,bins/{1,2,3,4,5,6,7}}
-################################
################################
@@ -133,9 +135,10 @@ cd "$BKUP_ROOT" && mkdir -p {rw,ro,bins/{1,2,3,4,5,6,7}}
debug "No seed found -- creating a new one...";
create_new_seed;
}
+
mount_union_ro $(( $(date +%u) + $MODIFIER ))
+
mount_union_branch_rw $(( $(date +%u) + $MODIFIER ))
-################################
################################
@@ -161,5 +164,4 @@ run_rsync
}
finish_routine
-################################