From c4be146c2c408debdc777f049e969fb87e5ef667 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Fri, 8 Jan 2010 01:58:28 -0500 Subject: Spacing for readability --- squashfu | 8 +++++--- 1 file 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 -################################ -- cgit v1.2.3