summaryrefslogtreecommitdiff
path: root/build_gfxoverlay.sh
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2011-03-04 04:57:25 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2011-03-04 04:57:25 +0100
commit4b0deb206a6497ab090190fbbdb0086645301b4f (patch)
tree3bc2683263be3277f26409f0f79688364d941508 /build_gfxoverlay.sh
parent7f27ceef2c084d6c57d784ab258c517ef2d6d021 (diff)
downloadkanotix-4b0deb206a6497ab090190fbbdb0086645301b4f.zip
kanotix-4b0deb206a6497ab090190fbbdb0086645301b4f.tar.gz
added error handling
Diffstat (limited to 'build_gfxoverlay.sh')
-rwxr-xr-xbuild_gfxoverlay.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/build_gfxoverlay.sh b/build_gfxoverlay.sh
index 050c8ac..a494fbc 100755
--- a/build_gfxoverlay.sh
+++ b/build_gfxoverlay.sh
@@ -76,6 +76,10 @@ if [ -d cache ]; then
mv -f overlay/usr/src/NVIDIA-Linux* cache/ 2>/dev/null
mv -f overlay/usr/src/ati-driver-installer* cache/ 2>/dev/null
fi
+if [ -z "$(find overlay/ -name '*.ko')" ]; then
+ echo "Error: Something went wrong while building the overlay (no *.ko module has been built)"
+ exit 6
+fi
cd overlay
rm -rf usr/sbin/update-initramfs etc/resolv.conf usr/src/NVIDIA-Linux* usr/src/ati-driver-installer* overlay.sh tmp var/log .??*
cd ..