aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-08 18:58:19 -0500
committerDave Reisner <d@falconindy.com>2010-01-08 18:58:19 -0500
commita4908c7bcad64fab32fa86c907b35ed4fbc41d27 (patch)
treee0a39d04277d73e9dcc0f8cc5a1a956e01e0beff
parent6f32d3b580c0b4ae24b19ee76864b30d7e004b67 (diff)
downloadsquashfu-a4908c7bcad64fab32fa86c907b35ed4fbc41d27.tar.gz
Refine config import
-rwxr-xr-xsquashfu5
1 files changed, 3 insertions, 2 deletions
diff --git a/squashfu b/squashfu
index 65abed1..6a30ff5 100755
--- a/squashfu
+++ b/squashfu
@@ -10,13 +10,14 @@ info () {
}
die () {
- echo -e '\033[1;31mERROR ::\033[1;m ' $*
+ echo -e '\033[1;31mFATAL ::\033[1;m ' $*
exit 1
}
+# Source default config, and bail on bad syntax
CONFIG=/etc/squashfu.conf
source $CONFIG
-[[ $? -gt 0 ]] && die "Error in config file. Please check your syntax"
+[[ $? -gt 0 ]] && die "Syntax error in config file."
create_new_seed () {
# Create a new squashfs based on the contents of the union