summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-02-08 23:27:38 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:09:42 +0100
commit6362c98af7c42ab3cea01d4f88d27321b644ea6e (patch)
treeb92a6d1dd9c2e82d84b54f5177884d87df3267ca /examples
parentb540927007698439ea3371cf8f061a8f35eb74a5 (diff)
downloadlive-build-6362c98af7c42ab3cea01d4f88d27321b644ea6e.zip
live-build-6362c98af7c42ab3cea01d4f88d27321b644ea6e.tar.gz
Overwriting default kernels in image autobuild script only when being on i386.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/cron/images.sh21
1 files changed, 12 insertions, 9 deletions
diff --git a/examples/cron/images.sh b/examples/cron/images.sh
index 6d4c2ea..943ec44 100755
--- a/examples/cron/images.sh
+++ b/examples/cron/images.sh
@@ -29,15 +29,18 @@ do
rm -rf cache/packages*
rm -rf cache/stages_rootfs
- case "${FLAVOUR}" in
- standard|rescue|lxde-desktop|xfce-desktop)
- KERNEL="486 686"
- ;;
-
- gnome-desktop|kde-desktop)
- KERNEL="686"
- ;;
- esac
+ if [ "${ARCHITECTURE}" = "i386" ]
+ then
+ case "${FLAVOUR}" in
+ standard|rescue|lxde-desktop|xfce-desktop)
+ KERNEL="486 686"
+ ;;
+
+ gnome-desktop|kde-desktop)
+ KERNEL="686"
+ ;;
+ esac
+ fi
if [ "${SOURCE}" = "enabled" ]
then