Put interpreted variables (debian_url, debian_file) after arguments processing
This commit is contained in:
parent
9b7169cbaa
commit
163426c4ac
1 changed files with 4 additions and 4 deletions
8
init.sh
8
init.sh
|
@ -15,10 +15,6 @@ SYSLINUX_BIOS_FILES=""
|
|||
SYSLINUX_EFI_FILES="ldlinux.e64"
|
||||
TMP_DIR="tmp"
|
||||
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`
|
||||
|
||||
|
@ -91,6 +87,10 @@ while getopts "ha:bd:" opt; do
|
|||
esac
|
||||
done
|
||||
|
||||
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"
|
||||
|
||||
# Création du répertoire temporaire
|
||||
if [ ! -d $TMP_DIR ]; then mkdir $TMP_DIR; fi
|
||||
|
||||
|
|
Reference in a new issue