aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initrdscripts/initramfs-framework/setup-live
blob: 591c93a9622401e0ae3d6ee5597ace7f3913e2c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

@media only all and (prefers-color-scheme: dark) {
.highlight .hll { background-color: #49483e }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
.highlight .p { color: #f8f8f2 } /* Punctuation */
.highlight .ch { color: #75715e } /* Comment.Hashbang */
.highlight .cm { color: #75715e } /* Comment.Multiline */
.highlight .cp { color: #75715e } /* Comment.Preproc */
.highlight .cpf { color: #75715e } /* Comment.PreprocFile */
.highlight .c1 { color: #75715e } /* Comment.Single */
.highlight .cs { color:
#/bin/sh
# Copyright (C) 2011 O.S. Systems Software LTDA.
# Licensed on MIT

setup_enabled() {
	return 0
}

setup_run() {
ROOT_IMAGE="rootfs.img"
ISOLINUX=""
ROOT_DISK=""
shelltimeout=30

	if [ -z $bootparam_root ]; then
		echo "Waiting for removable media..."
		C=0
		while true
		do
		  for i in `ls /run/media 2>/dev/null`; do
		      if [ -f /run/media/$i/$ROOT_IMAGE ] ; then
				found="yes"
				ROOT_DISK="$i"
				break
			  elif [ -f /run/media/$i/isolinux/$ROOT_IMAGE ]; then
				found="yes"
				ISOLINUX="isolinux"
				ROOT_DISK="$i"
				break
		      fi
		  done
		  if [ "$found" = "yes" ]; then
		      break;
		  fi
		  # don't wait for more than $shelltimeout seconds, if it's set
		  if [ -n "$shelltimeout" ]; then
		      echo -n " " $(( $shelltimeout - $C ))
		      if [ $C -ge $shelltimeout ]; then
		           echo "..."
			   echo "Mounted filesystems"
		           mount | grep media
		           echo "Available block devices"
		           cat /proc/partitions
		           fatal "Cannot find $ROOT_IMAGE file in /run/media/* , dropping to a shell "
		      fi
		      C=$(( C + 1 ))
		  fi
		  sleep 1
		done
		# The existing rootfs module has no support for rootfs images. Assign the rootfs image.
		bootparam_root="/run/media/$ROOT_DISK/$ISOLINUX/$ROOT_IMAGE"
	fi

	if [ "$bootparam_LABEL" != "boot" -a -f /init.d/$bootparam_LABEL.sh ] ; then
		if [ -f /run/media/$i/$ISOLINUX/$ROOT_IMAGE ] ; then
		    ./init.d/$bootparam_LABEL.sh $i/$ISOLINUX $ROOT_IMAGE $video_mode $vga_mode $console_params
		else
		    fatal "Could not find $bootparam_LABEL script"
		fi

		# If we're getting here, we failed...
		fatal "Target $bootparam_LABEL failed"
	fi
}
class="s2"> gst-plugins-ugly-mpeg2dec" RRECOMMENDS_gst-meta-video = "\ gst-meta-audio"