Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 76542 | Differences between
and this patch

Collapse All | Expand All

(-)embedded.sh (-1 / +39 lines)
Lines 1-7 Link Here
1
#!/bin/bash
1
#!/bin/bash
2
# Copyright 1999-2003 Gentoo Technologies, Inc.
2
# Copyright 1999-2003 Gentoo Technologies, Inc.
3
# Distributed under the terms of the GNU General Public License v2
3
# Distributed under the terms of the GNU General Public License v2
4
# $Header: /var/cvsroot/gentoo/src/catalyst/targets/embedded/embedded.sh,v 1.6 2004/12/16 20:01:38 wolf31o2 Exp $
4
# $Header: /home/cvsroot/gentoo/src/catalyst/targets/embedded/embedded.sh,v 1.4 2004/04/14 22:35:29 zhen Exp $
5
5
6
case $1 in
6
case $1 in
7
	enter)
7
	enter)
Lines 13-18 Link Here
13
		${clst_CHROOT} ${clst_chroot_path} /tmp/embedded-chroot.sh || exit 1
13
		${clst_CHROOT} ${clst_chroot_path} /tmp/embedded-chroot.sh || exit 1
14
		rm -f ${clst_chroot_path}/tmp/embedded-chroot.sh
14
		rm -f ${clst_chroot_path}/tmp/embedded-chroot.sh
15
	;;
15
	;;
16
17
	preclean)
18
		# currently this doesn't do much
19
		cp ${clst_sharedir}/targets/embedded/embedded-preclean-chroot.sh ${clst_chroot_path}
20
		${clst_CHROOT} ${clst_chroot_path} /tmp/embedded-preclean-chroot.sh || exit 1
21
		rm -rf ${clst_chroot_path}/tmp/embedded-preclean-chroot.sh
22
	;;
16
	package)
23
	package)
17
		export root_fs_path="${clst_chroot_path}/tmp/mergeroot"
24
		export root_fs_path="${clst_chroot_path}/tmp/mergeroot"
18
		install -d ${clst_image_path}
25
		install -d ${clst_image_path}
Lines 21-26 Link Here
21
	echo "Created ${clst_embedded_fs_type} image at ${clst_image_path}/root_fs"
28
	echo "Created ${clst_embedded_fs_type} image at ${clst_image_path}/root_fs"
22
	echo "Image size: ${imagesize}k"
29
	echo "Image size: ${imagesize}k"
23
	;;
30
	;;
31
32
	# almost the same code as livecd-stage2
33
	kernel)
34
		shift
35
		numkernels="$1"
36
		cp -a ${clst_sharedir}/livecd/runscript-support/pre-kmerge.sh ${clst_chroot_path}/tmp
37
		${clst_CHROOT} ${clst_chroot_path} /tmp/pre-kmerge.sh || exit 1
38
		rm -f ${clst_chroot_path}/tmp/pre-kmerge.sh
39
		cp -a ${clst_sharedir}/targets/embedded/kmerge.sh ${clst_chroot_path}/tmp
40
		count=0
41
		while [ ${count} -lt ${numkernels} ]
42
		do
43
			sleep 30
44
		
45
			shift
46
			export clst_kname="$1"
47
			shift
48
			export clst_ksource="$1"
49
			shift
50
			export clst_kextversion="$1"
51
			shift
52
			export clst_gk_action="$1"
53
			echo "exporting clst_gk_action as:${1}" 
54
			shift
55
			${clst_CHROOT} ${clst_chroot_path} /tmp/kmerge.sh || exit 1
56
			count=$(( ${count} + 1 ))
57
		done
58
		rm -f ${clst_chroot_path}/tmp/pre-kmerge.sh
59
		cp -a ${clst_sharedir}/livecd/runscript-support/post-kmerge.sh ${clst_chroot_path}/tmp
60
		${clst_CHROOT} ${clst_chroot_path} /tmp/post-kmerge.sh || exit 1
61
		;;
24
	*)
62
	*)
25
		exit 1
63
		exit 1
26
	;;
64
	;;

Return to bug 76542