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
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