From 4b0deb206a6497ab090190fbbdb0086645301b4f Mon Sep 17 00:00:00 2001 From: Andreas Loibl Date: Fri, 4 Mar 2011 04:57:25 +0100 Subject: added error handling --- build_gfxoverlay.sh | 4 ++++ 1 file changed, 4 insertions(+) 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 .. -- cgit v1.0