diff options
author | Dave Reisner <d@falconindy.com> | 2010-01-08 01:58:28 -0500 |
---|---|---|
committer | Dave Reisner <d@falconindy.com> | 2010-01-08 01:58:28 -0500 |
commit | c4be146c2c408debdc777f049e969fb87e5ef667 (patch) | |
tree | 164c85fb7a771afe65e3d7b21541faa368eb9907 | |
parent | 553bfcb1b01e36f612e81e62fde23c48f01654ed (diff) | |
download | squashfu-c4be146c2c408debdc777f049e969fb87e5ef667.tar.gz |
Spacing for readability
-rwxr-xr-x | squashfu | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 -################################ |