From f98f57d664526adae5d962a52310a37871f7c5b0 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 9 Jan 2010 01:44:32 -0500 Subject: Pretty up comment headers --- squashfu | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/squashfu b/squashfu index ab7eed8..dc4de79 100755 --- a/squashfu +++ b/squashfu @@ -42,9 +42,9 @@ create_new_seed () { # The meat and potatoes of this bad agent. do_backup () { - ################################ - # Sanity checks - ################################ + ########################### + # Sanity checks # + ########################### # - Are we root? # - is our BKUP_ROOT valid? (FAIL) # - Check for pre-existing mounts just in case (and unmount them) @@ -59,9 +59,9 @@ do_backup () { create_directory_structure - ################################ - # Prep work - ################################ + ####################### + # Prep work # + ####################### # - does seed exist? (if not, our backup is creating the seed) # - Prepare union mount with proper bins # - Mount entirely ro first, then open single branch as rw @@ -75,15 +75,15 @@ do_backup () { mount_union_branch_rw $(( $(date +%u) + $MODIFIER )) - ################################ - # Call for backup! - ################################ + ############################ + # Call for backup! # + ############################ run_rsync - ################################ - # Cleanup - ################################ + ##################### + # Cleanup # + ##################### # - Is this resquash day? If so, we need a new squash # - If new squash creation fails, we're in trouble. (by default, keep previous week) # - Call unmount_all when we're done @@ -272,7 +272,9 @@ HELP exit 0 } -# Dispatch +##################### +# Dispatch # +##################### [[ $# -eq 0 ]] && usage dispatch_backup () { -- cgit v1.2.3