aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-18 00:15:37 -0500
committerDave Reisner <d@falconindy.com>2010-01-18 00:15:37 -0500
commit40ca97e0674202f00a1e6401e6c52a03b07f6fa6 (patch)
treec3832f0cebff09821a325b162083721e37f52743
parentde17d5490f7c3e50f71dc57815ee265b11fcdcc5 (diff)
downloadsquashfu-40ca97e0674202f00a1e6401e6c52a03b07f6fa6.tar.gz
Add -c option for specifying alternate config
-rwxr-xr-xsquashfu10
1 files changed, 8 insertions, 2 deletions
diff --git a/squashfu b/squashfu
index c6e211e..9830965 100755
--- a/squashfu
+++ b/squashfu
@@ -362,7 +362,7 @@ usage () {
cat <<HELP
USAGE
- squashfu <action>
+ squashfu <action> [options]
ACTIONS
-B
@@ -383,13 +383,19 @@ ACTIONS
Unmount squash and union. Although SquashFu will always check and unmount as
necessary before an operation, this is provided as a safeguard.
+ OPTIONS
+ -c <path_to_config>
+ Specify an alternate config file. Options defined will override options in
+ the default config. If you specify alternate locations via a supplmenetal config,
+ you will need to provide the config for all actions
+
HELP
exit 0
}
[[ -z $1 ]] && ( usage; exit 1; )
-while getopts :BCQR:U opt; do
+while getopts :BCQR:Uc: opt; do
case $opt in
B)
action=backup