make_win_usb: add a MS_SYS_VERSION variable.

This commit is contained in:
Jeremy Gardais 2015-11-17 22:22:46 +01:00
parent 369f6eecf5
commit b6bc13d1b8
1 changed files with 4 additions and 3 deletions

View File

@ -6,6 +6,7 @@ WIN_USB="${1}"
WIN_USB_MNT_PATH=/mnt/USBW7/ WIN_USB_MNT_PATH=/mnt/USBW7/
WIN_ISO_FILE="${2}" WIN_ISO_FILE="${2}"
WIN_ISO_MNT_PATH=/mnt/WIN7/ WIN_ISO_MNT_PATH=/mnt/WIN7/
MS_SYS_VERSION="2.5.1"
# Test if args exists # Test if args exists
for file in "${WIN_USB}" "${WIN_ISO_FILE}"; do for file in "${WIN_USB}" "${WIN_ISO_FILE}"; do
@ -51,12 +52,12 @@ sudo aptitude install -y gettext
# Ensure to download the last version of ms-sys # Ensure to download the last version of ms-sys
if [ ! $(command -v ms-sys) ]; then if [ ! $(command -v ms-sys) ]; then
# http://ms-sys.sourceforge.net/#Download # http://ms-sys.sourceforge.net/#Download
wget http://netix.dl.sourceforge.net/project/ms-sys/ms-sys%20development/2.5.0/ms-sys-2.5.0.tar.gz -O /tmp/ms-sys-2.5.0.tar.gz wget http://netix.dl.sourceforge.net/project/ms-sys/ms-sys%20development/"${MS_SYS_VERSION}"/ms-sys-"${MS_SYS_VERSION}".tar.gz -O /tmp/ms-sys-"${MS_SYS_VERSION}".tar.gz
# Extract and install ms-sys # Extract and install ms-sys
cd /tmp cd /tmp
tar xzvf /tmp/ms-sys-2.5.0.tar.gz tar xzvf /tmp/ms-sys-"${MS_SYS_VERSION}".tar.gz
cd /tmp/ms-sys-2.5.0.tar.gz cd /tmp/ms-sys-"${MS_SYS_VERSION}".tar.gz
sudo make sudo make
sudo make install sudo make install
fi fi