Started work on stage5
[hvlinux.git] / stage3 / cis-tftp-hpa
index 555aeb5..4fe70ce 100755 (executable)
@@ -1,4 +1,6 @@
 #!/bin/sh
+set -o errexit
+
 # First argument of this script is the package name.
 # Remaining arguments are additional configure options.
 
@@ -12,24 +14,23 @@ shift
 CONFIGURE_OPTS=${*}
 
 # Applying patches (if any)
-apply_patches ${PACKAGE} &&
+apply_patches ${PACKAGE}
 
 # Need to specify mandir manually because of a stupid programming error in tftpd sources...
-cd ${LFS_TMP}/${PACKAGE} &&
+cd ${LFS_TMP}/${PACKAGE}
 ./configure \
     --prefix=/usr \
     --sysconfdir=/etc \
     --mandir=/usr/man \
     --without-tcpwrappers \
-    ${CONFIGURE_OPTS} &&
-make &&
-make install &&
+    ${CONFIGURE_OPTS}
+make
+make install
 ldconfig
 
-mkdir -v -p /srv/tftpboot &&
+mkdir -v -p /srv/tftpboot
 
 # Addition to /etc/inetd.conf
 string_add "tftp  dgram  udp wait       root  /usr/sbin/in.tftpd in.tftpd -s /srv/tftpboot -v -v -v -v -v" /etc/inetd.conf
 
-# Return last error
 exit $?