From a4908c7bcad64fab32fa86c907b35ed4fbc41d27 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Fri, 8 Jan 2010 18:58:19 -0500 Subject: Refine config import --- squashfu | 5 +++-- 1 file 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 -- cgit v1.2.3