--- trunk/installer-simple/bin/installer.sh.in 2014/01/03 14:00:30 2333 +++ trunk/installer-simple/bin/installer.sh.in 2014/01/03 14:03:32 2334 @@ -9,13 +9,30 @@ INSTALLER_LIBDIR="%LIBDIR%" -source %SYSCONFDIR%/installer.conf +# configuration +if [ -e %SYSCONFDIR%/installer.conf ] +then + source %SYSCONFDIR%/installer.conf +else + die "/etc/installer.conf not found" +fi #images: (get ${CDIMAGENAME}) -source /mnt/cdrom/system/images.conf +if [ -e /mnt/cdrom/system/images.conf ] +then + source /mnt/cdrom/system/images.conf +else + die "/mnt/cdrom/system/images.conf not found" +fi #Includes -source ${INSTALLER_LIBDIR}/functions/findhdd.sh > /dev/null +if [ -e ${INSTALLER_LIBDIR}/functions/findhdd.sh ] +then + source ${INSTALLER_LIBDIR}/functions/findhdd.sh > /dev/null +else + die "${INSTALLER_LIBDIR}/functions/findhdd.sh not found" +fi + ### bugfix ############################### cdromdev="$(echo ${cdromdev} | sed 's/ //')" ########################################