diff options
author | Sebastian Schmelzer | 2011-04-21 15:36:16 +0200 |
---|---|---|
committer | Sebastian Schmelzer | 2011-04-21 15:36:16 +0200 |
commit | c61ac386c2dbf70c629d8e5364c5872563510aed (patch) | |
tree | 5f5dd1451866093afeab1edd72a1029d292fd7d0 /bin/env.setup-syslinux.sh | |
parent | fbgui update (shutdowm button fix...) (diff) | |
download | usb-boot-stick-c61ac386c2dbf70c629d8e5364c5872563510aed.tar.gz usb-boot-stick-c61ac386c2dbf70c629d8e5364c5872563510aed.tar.xz usb-boot-stick-c61ac386c2dbf70c629d8e5364c5872563510aed.zip |
script tuning :) + vesamenu
Diffstat (limited to 'bin/env.setup-syslinux.sh')
-rwxr-xr-x | bin/env.setup-syslinux.sh | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/bin/env.setup-syslinux.sh b/bin/env.setup-syslinux.sh new file mode 100755 index 0000000..065b4e9 --- /dev/null +++ b/bin/env.setup-syslinux.sh @@ -0,0 +1,44 @@ +#!/bin/sh + +ROOT_DIR=$(readlink -f $(dirname $(readlink -f $0))/..) + +. $ROOT_DIR/config/setup.conf + +if [ "$syslinux_use_testing" = "1" ]; then + SYSLINUX_URL=$syslinux_testing_url + SYSLINUX_VERSION=$syslinux_testing_version + SYSLINUX_TESTING="x" +else + SYSLINUX_URL=$syslinux_stable_url + SYSLINUX_VERSION=$syslinux_stable_version + SYSLINUX_STABLE="x" +fi + + +get_syslinux () +{ + wget -q $SYSLINUX_URL + tar xjf $SYSLINUX_VERSION.tar.bz2 + rm $SYSLINUX_VERSION.tar.bz2 + rm latest + ln -sf $SYSLINUX_VERSION/ latest +} + + +cd $ROOT_DIR/contrib/syslinux + +if [ "x$(readlink -e latest)" != "x" ]; then + if [ "$(basename $(readlink -e latest))" = "$SYSLINUX_VERSION" ]; then + echo "[setup-syslinux] \t Found up-to-date syslinux ($SYSLINUX_VERSION)" + else + echo "[setup-syslinux] \t Found different syslinux version ($(basename $(readlink -e latest))). Switch to $SYSLINUX_VERSION." + get_syslinux + fi +else + echo "[setup-syslinux] \t Install $SYSLINUX_VERSION." + get_syslinux +fi + +cd - 2>&1 > /dev/null + + |