From 8ae81f0478ec588eca61e58ac46140c5463769da Mon Sep 17 00:00:00 2001 From: josch Date: Sun, 13 Sep 2009 12:14:11 +0000 Subject: [PATCH] check whether cdebootstrap succeeded --- pyneo-rootfs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyneo-rootfs.sh b/pyneo-rootfs.sh index c0e5e5d..f0a5334 100755 --- a/pyneo-rootfs.sh +++ b/pyneo-rootfs.sh @@ -39,8 +39,8 @@ DEPS_NETMGMT="ifupdown,netbase,iputils-ping,dnsmasq,dhcp3-client,netplug" DEPS_NETAPPS="curl,wget,openssh-server,vpnc,rsync" cdebootstrap --include $DEPS_SYSTEM,$DEPS_CONSOLE,$DEPS_WLAN,$DEPS_BT,$DEPS_NETMGMT,$DEPS_NETAPPS --flavour=minimal $DIST $ROOTDIR http://ftp.debian.org/debian -if [ -n "`cat $ROOTDIR/etc/apt/sources.list | grep invalid`" ]; then - echo "debootstrap failed" +if [ $? -ne 0 ]; then + echo "cdebootstrap failed" exit 1 fi