Use tabulations instead of white spaces
This commit is contained in:
parent
764990e01f
commit
0e3674ee12
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue