diff --git a/scripts/download_clonezilla.sh b/scripts/download_clonezilla.sh index 734cf18..a9da5c3 100755 --- a/scripts/download_clonezilla.sh +++ b/scripts/download_clonezilla.sh @@ -16,22 +16,22 @@ mkdir -p "${CZ_INSTALLER_DIR}" touch "${CZ_CONFIG_PXE}" for ARCH in amd64 i686; do # For available classic architecture - CZ_URL="https://osdn.jp/dl/clonezilla/clonezilla-live-${CZ_VERSION}-${ARCH}.zip" - CZ_TEMP_FILE="/tmp/clonezilla-live-"${CZ_VERSION}"-"${ARCH}".zip " + CZ_URL="https://osdn.jp/dl/clonezilla/clonezilla-live-${CZ_VERSION}-${ARCH}.zip" + CZ_TEMP_FILE="/tmp/clonezilla-live-"${CZ_VERSION}"-"${ARCH}".zip " - # Create and go into directory - mkdir -p ${CZ_INSTALLER_DIR}/${ARCH} - pushd ${CZ_INSTALLER_DIR}/${ARCH} + # Create and go into directory + mkdir -p ${CZ_INSTALLER_DIR}/${ARCH} + pushd ${CZ_INSTALLER_DIR}/${ARCH} - # Download and extract only PXE files - wget "${CZ_URL}" -O "${CZ_TEMP_FILE}" - unzip -j "${CZ_TEMP_FILE}" live/vmlinuz live/initrd.img live/filesystem.squashfs -d . - rm -f "${CZ_TEMP_FILE}" + # Download and extract only PXE files + wget "${CZ_URL}" -O "${CZ_TEMP_FILE}" + unzip -j "${CZ_TEMP_FILE}" live/vmlinuz live/initrd.img live/filesystem.squashfs -d . + rm -f "${CZ_TEMP_FILE}" - popd + popd - # Config file - /bin/cat >> "${CZ_CONFIG_PXE}" << EOF + # Config file + /bin/cat >> "${CZ_CONFIG_PXE}" << EOF label live${ARCH} menu label Clonezilla Live ^${ARCH} kernel installer/clonezilla/${ARCH}/vmlinuz diff --git a/scripts/download_ubuntu.sh b/scripts/download_ubuntu.sh index 035b671..5ce53a5 100755 --- a/scripts/download_ubuntu.sh +++ b/scripts/download_ubuntu.sh @@ -23,4 +23,5 @@ done # Link the LTS distribution name to lts unlink ${TFTP_ROOT}/installer/ubuntu/lts ln -s ${LTS} ${TFTP_ROOT}/installer/ubuntu/lts -########################### + +exit 0