Commit | Line | Data |
---|---|---|
60d9f810 JB |
1 | #!/bin/bash |
2 | ||
3 | # This script creates a directory containing all files required for a installation on a device | |
4 | # For now, is only for efikamx devices but easily could be adapted for other devices (and/or ABIs) | |
5 | # To do that, just change the variables you need and remove/add | |
6 | ||
7 | VERSION="2.7.1-rc1" | |
8 | DEVICE="efikamx" | |
9 | KERNEL_VERSION_STRING="2.6.31.14.27-efikamx_20111026" | |
10 | DESTDIR="crux-arm-$VERSION-$DEVICE" | |
11 | COLLECTIONS="core" | |
12 | ||
13 | [ -d $DESTDIR ] && rm -r $DESTDIR | |
14 | mkdir -p $DESTDIR | |
15 | ||
16 | # bootloader files | |
17 | wget -c -O $DESTDIR/boot.scr http://crux-arm.nu/files/devices/$DEVICE/boot-ram.scr | |
18 | wget -c -O $DESTDIR/uImage http://crux-arm.nu/files/devices/$DEVICE/uImage-$KERNEL_VERSION_STRING | |
19 | wget -c -O $DESTDIR/uInitrd http://crux-arm.nu/files/devices/$DEVICE/uInitrd-$VERSION | |
20 | ||
21 | # kernel files | |
22 | mkdir -p $DESTDIR/crux/kernel | |
23 | wget -c -P $DESTDIR/crux/kernel http://crux-arm.nu/files/distfiles/$DEVICE/linux-$KERNEL_VERSION_STRING.tar.bz2 | |
24 | wget -c -P $DESTDIR/crux/kernel http://crux-arm.nu/files/devices/$DEVICE/modules-$KERNEL_VERSION_STRING.tar.bz2 | |
25 | wget -c -P $DESTDIR/crux/kernel http://crux-arm.nu/files/devices/$DEVICE/linux-$KERNEL_VERSION_STRING.config | |
26 | ||
27 | # download released packages | |
28 | # TODO: use local packages | |
29 | for COL in ${COLLECTIONS[@]}; do | |
30 | mkdir -p $DESTDIR/crux/$COL | |
31 | scp crux-arm.nu:/home/crux-arm/public_html/pkg/${VERSION%%-*}/$COL/* $DESTDIR/crux/$COL | |
32 | done | |
33 | ||
34 | # this stuff is important in order to get the setup working fine | |
35 | echo "$VERSION-$(date +'%Y%m%d')" > $DESTDIR/crux-media | |
36 | wget -O $DESTDIR/crux/setup.dependencies "http://crux.nu/gitweb/?p=system/iso.git;a=blob_plain;f=iso/setup.dependencies" | |
37 | ||
38 | # optional but is a nice to have per device and can differ between them (due to bootloader, configs, etc.) | |
39 | mkdir -p $DESTDIR/$DEVICE | |
40 | wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/securetty | |
41 | wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/inittab | |
42 | wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/10-imx.rules | |
43 | wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/xorg.conf | |
44 | wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/rc.modules | |
45 | wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/fstab-sda | |
46 | wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/fstab-mmcblk | |
47 | wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/boot-ram.scr | |
48 | wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/boot-ram.script | |
49 | wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/boot-sda.scr | |
50 | wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/boot-sda.script | |
51 | wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/boot-mmcblk.scr | |
52 | wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/boot-mmcblk.script | |
53 | wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/prt-get.conf | |
54 | wget -O $DESTDIR/$DEVICE/$DEVICE.rsync "http://crux-arm.nu/portdb/?getup=$DEVICE&type=rsync" | |
55 | ||
56 | # End of file |