Put all variables on top
This commit is contained in:
parent
9392442c41
commit
81e95d13a0
1 changed files with 6 additions and 6 deletions
12
init.sh
12
init.sh
|
@ -15,6 +15,12 @@ SYSLINUX_EFI_FILES="ldlinux.e64"
|
||||||
TMP_DIR="tmp"
|
TMP_DIR="tmp"
|
||||||
MOUNT_DIR="/mnt/usbstick"
|
MOUNT_DIR="/mnt/usbstick"
|
||||||
|
|
||||||
|
bootfiles_Debian="http://ftp.debian.org/debian/dists/jessie/main/installer-${DEBIAN_ARCH}/current/images/hd-media"
|
||||||
|
iso_url="http://cdimage.debian.org/debian-cd/${DEBIAN_VERSION}/${DEBIAN_ARCH}/iso-cd"
|
||||||
|
iso_file="debian-${DEBIAN_VERSION}-${DEBIAN_ARCH}-netinst.iso "
|
||||||
|
syslinux_mod="/usr/lib/syslinux"
|
||||||
|
current_dir=`pwd`
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
cat << EOF
|
cat << EOF
|
||||||
USAGE: ${0} [-a architecture] [-b]
|
USAGE: ${0} [-a architecture] [-b]
|
||||||
|
@ -85,12 +91,6 @@ then
|
||||||
echo "No destination device specified, USB key will not be created."
|
echo "No destination device specified, USB key will not be created."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bootfiles_Debian="http://ftp.debian.org/debian/dists/jessie/main/installer-${DEBIAN_ARCH}/current/images/hd-media"
|
|
||||||
iso_url="http://cdimage.debian.org/debian-cd/${DEBIAN_VERSION}/${DEBIAN_ARCH}/iso-cd"
|
|
||||||
iso_file="debian-${DEBIAN_VERSION}-${DEBIAN_ARCH}-netinst.iso "
|
|
||||||
syslinux_mod="/usr/lib/syslinux"
|
|
||||||
current_dir=`pwd`
|
|
||||||
|
|
||||||
# Download Debian files (kernel, initrd and iso)
|
# Download Debian files (kernel, initrd and iso)
|
||||||
echo -e "\nPrepare Debian files\n---"
|
echo -e "\nPrepare Debian files\n---"
|
||||||
cd $TMP_DIR
|
cd $TMP_DIR
|
||||||
|
|
Reference in a new issue