Add syslinux executable test
This commit is contained in:
parent
81e95d13a0
commit
5b76a63f57
1 changed files with 8 additions and 0 deletions
8
init.sh
8
init.sh
|
@ -9,6 +9,7 @@ OPTIND=1
|
||||||
DEBIAN_VERSION="8.6.0"
|
DEBIAN_VERSION="8.6.0"
|
||||||
DEBIAN_ARCH="amd64"
|
DEBIAN_ARCH="amd64"
|
||||||
BOOT_TYPE="efi64"
|
BOOT_TYPE="efi64"
|
||||||
|
SYSLINUX_EXE=`witch syslinux`
|
||||||
SYSLINUX_FILES="menu.c32 vesamenu.c32 libutil.c32 libcom32.c32"
|
SYSLINUX_FILES="menu.c32 vesamenu.c32 libutil.c32 libcom32.c32"
|
||||||
SYSLINUX_BIOS_FILES=""
|
SYSLINUX_BIOS_FILES=""
|
||||||
SYSLINUX_EFI_FILES="ldlinux.e64"
|
SYSLINUX_EFI_FILES="ldlinux.e64"
|
||||||
|
@ -52,6 +53,13 @@ create_dir(){
|
||||||
if [ ! -d $1 ]; then mkdir -p $1; fi
|
if [ ! -d $1 ]; then mkdir -p $1; fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#Stop script if syslinux is not installed
|
||||||
|
if [ ! -f $SYSLINUX_EXE]
|
||||||
|
then
|
||||||
|
echo "Syslinux not found, script can't continue…"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Arguments ...
|
# Arguments ...
|
||||||
while getopts "ha:bd:" opt; do
|
while getopts "ha:bd:" opt; do
|
||||||
case "$opt" in
|
case "$opt" in
|
||||||
|
|
Reference in a new issue