diff options
author | Andreas Loibl <andreas@andreas-loibl.de> | 2011-03-04 04:57:25 +0100 |
---|---|---|
committer | Andreas Loibl <andreas@andreas-loibl.de> | 2011-03-04 04:57:25 +0100 |
commit | 4b0deb206a6497ab090190fbbdb0086645301b4f (patch) | |
tree | 3bc2683263be3277f26409f0f79688364d941508 | |
parent | 7f27ceef2c084d6c57d784ab258c517ef2d6d021 (diff) | |
download | kanotix-4b0deb206a6497ab090190fbbdb0086645301b4f.zip kanotix-4b0deb206a6497ab090190fbbdb0086645301b4f.tar.gz |
added error handling
-rwxr-xr-x | build_gfxoverlay.sh | 4 |
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 .. |