From 77cca44339aeac1eb00885fce969c8dfa29be68d Mon Sep 17 00:00:00 2001 From: Jose V Beneyto Date: Wed, 6 Jun 2012 12:15:34 +0200 Subject: [PATCH] Replaced scp commands by wget which would be better for non account users who want to create the installer --- makeDeviceInstaller.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/makeDeviceInstaller.sh b/makeDeviceInstaller.sh index 0fd4473..34a6e3a 100755 --- a/makeDeviceInstaller.sh +++ b/makeDeviceInstaller.sh @@ -8,7 +8,6 @@ VERSION="2.7.1-rc1" DEVICE="efikamx" KERNEL_VERSION_STRING="2.6.31.14.27-efikamx_20111026" DESTDIR="crux-arm-$VERSION-$DEVICE" -COLLECTIONS="core" [ -d $DESTDIR ] && rm -r $DESTDIR mkdir -p $DESTDIR @@ -25,10 +24,10 @@ wget -c -P $DESTDIR/crux/kernel http://crux-arm.nu/files/devices/$DEVICE/modules wget -c -P $DESTDIR/crux/kernel http://crux-arm.nu/files/devices/$DEVICE/linux-$KERNEL_VERSION_STRING.config # download released packages -# TODO: use local packages -for COL in ${COLLECTIONS[@]}; do - mkdir -p $DESTDIR/crux/$COL - scp crux-arm.nu:/home/crux-arm/public_html/pkg/${VERSION%%-*}/$COL/* $DESTDIR/crux/$COL +mkdir -p $DESTDIR/crux/core +PACKAGES="$(curl -s http://crux-arm.nu/pkg/${VERSION%%-*}/core/ | grep '.pkg.tar.' | cut -d'=' -f4 | cut -d'"' -f2)" +for pkg in ${PACKAGES[@]}; do + wget -c -P $DESTDIR/crux/core "http://crux-arm.nu/pkg/${VERSION%%-*}/core/$pkg" done # this stuff is important in order to get the setup working fine -- 2.26.2