summaryrefslogtreecommitdiff
path: root/scripts/vyatta-image-tools.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vyatta-image-tools.pl')
-rwxr-xr-xscripts/vyatta-image-tools.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/vyatta-image-tools.pl b/scripts/vyatta-image-tools.pl
index fc8bfc8..e2dbba6 100755
--- a/scripts/vyatta-image-tools.pl
+++ b/scripts/vyatta-image-tools.pl
@@ -59,6 +59,10 @@ sub conv_file {
$file = $filein;
$topdir = 'url';
} else {
+ if (! -d "/live/image/boot/$topdir/live-rw"){
+ print "Image $topdir not found!\n";
+ exit 1;
+ }
$file = "/live/image/boot/$topdir/live-rw/$file";
}
return ($topdir, $file);