summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-05-18 08:15:31 +0200
committerAaron Griffin <aaron@archlinux.org>2006-05-18 08:15:31 +0200
commitc6ef68481b1d6ffdf21ae9f7a198ed46123c525e (patch)
treebd5c932695b36e1bbc0a91efdcfb6ddf2a0f715e
parent05a29a1c0c4a50a23bb5984ada04b2323ac09e40 (diff)
downloadmkinitcpio-c6ef68481b1d6ffdf21ae9f7a198ed46123c525e.tar.gz
mkinitcpio-c6ef68481b1d6ffdf21ae9f7a198ed46123c525e.tar.xz
Cleaned up exit status
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@108 880c04e9-e011-0410-abf7-b926e227c9cd
-rw-r--r--mkinitcpio4
1 files changed, 4 insertions, 0 deletions
diff --git a/mkinitcpio b/mkinitcpio
index 54d0c82..d3a3b41 100644
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -149,12 +149,15 @@ if [ "${HAS_MODULES}" == "y" ]; then
add_file "/tmp/lib/modules/${KERNELVERSION}/modules.symbols" "/lib/modules/${KERNELVERSION}/modules.symbols"
fi
+status=0
if [ "x$GENIMG" != "x" ]; then
echo -n ":: Generating image '${GENIMG}'..."
if ! gen_init_cpio ${FILELIST} | gzip -9 > "${GENIMG}"; then
echo "FAILED"
+ status=1
else
echo "SUCCESS"
+ status=0
fi
if [ "x${SAVELIST}" == "x" ]; then
@@ -165,4 +168,5 @@ else
fi
[ -e "${MODULE_FILE}" ] && rm "${MODULE_FILE}"
[ -e "/tmp/${MODULEDIR}/" ] && rm -rf /tmp/${MODULEDIR}/
+exit $status
#vim:set ft=sh ts=4 sw=4 noet: