Use tabulations instead of white spaces

This commit is contained in:
Jeremy Gardais 2016-07-27 12:16:51 +02:00
parent 764990e01f
commit 0e3674ee12
2 changed files with 14 additions and 13 deletions

View File

@ -16,22 +16,22 @@ mkdir -p "${CZ_INSTALLER_DIR}"
touch "${CZ_CONFIG_PXE}" touch "${CZ_CONFIG_PXE}"
for ARCH in amd64 i686; do # For available classic architecture for ARCH in amd64 i686; do # For available classic architecture
CZ_URL="https://osdn.jp/dl/clonezilla/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 " CZ_TEMP_FILE="/tmp/clonezilla-live-"${CZ_VERSION}"-"${ARCH}".zip "
# Create and go into directory # Create and go into directory
mkdir -p ${CZ_INSTALLER_DIR}/${ARCH} mkdir -p ${CZ_INSTALLER_DIR}/${ARCH}
pushd ${CZ_INSTALLER_DIR}/${ARCH} pushd ${CZ_INSTALLER_DIR}/${ARCH}
# Download and extract only PXE files # Download and extract only PXE files
wget "${CZ_URL}" -O "${CZ_TEMP_FILE}" wget "${CZ_URL}" -O "${CZ_TEMP_FILE}"
unzip -j "${CZ_TEMP_FILE}" live/vmlinuz live/initrd.img live/filesystem.squashfs -d . unzip -j "${CZ_TEMP_FILE}" live/vmlinuz live/initrd.img live/filesystem.squashfs -d .
rm -f "${CZ_TEMP_FILE}" rm -f "${CZ_TEMP_FILE}"
popd popd
# Config file # Config file
/bin/cat >> "${CZ_CONFIG_PXE}" << EOF /bin/cat >> "${CZ_CONFIG_PXE}" << EOF
label live${ARCH} label live${ARCH}
menu label Clonezilla Live ^${ARCH} menu label Clonezilla Live ^${ARCH}
kernel installer/clonezilla/${ARCH}/vmlinuz kernel installer/clonezilla/${ARCH}/vmlinuz

View File

@ -23,4 +23,5 @@ done
# Link the LTS distribution name to lts # Link the LTS distribution name to lts
unlink ${TFTP_ROOT}/installer/ubuntu/lts unlink ${TFTP_ROOT}/installer/ubuntu/lts
ln -s ${LTS} ${TFTP_ROOT}/installer/ubuntu/lts ln -s ${LTS} ${TFTP_ROOT}/installer/ubuntu/lts
###########################
exit 0