File: generate

package info (click to toggle)
faumachine 20100527-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 53,836 kB
  • ctags: 20,552
  • sloc: ansic: 179,550; asm: 3,645; makefile: 3,611; perl: 2,103; sh: 1,529; python: 600; xml: 563; lex: 210; vhdl: 204
file content (48 lines) | stat: -rw-r--r-- 1,044 bytes parent folder | download | duplicates (2)
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
41
42
43
44
45
46
47
48
#
# $Id: generate,v 1.1 2009-02-17 14:52:49 potyra Exp $
#
#
# Enter Knoppix-4.0.2-CD.
#
cdrom_insert	Knoppix-4.0.2-CD
#
# Power-on node.
#
power_on
#
# Wait for boot prompt.
# Start as little services as possible.
#
wait_asc	boot:						10min
type		"knoppix 3 vga=normal nopcmcia nofirewire noaudio nodhcp\0d"
#
# Intermediate step.
#
wait_asc	INIT: Entering runlevel: 3			10min
#
# Wait for shell prompt.
#
wait_asc	root@tty1[/]#  					10min
#
# List USB devices.
# Check for "0d7d:1300 Phison Electronics Copr. Flash Disk"
#
type		"lsusb\0d"
wait_asc	0d7d:1300 Phison Electronics Corp. Flash Disk	1min
wait_asc	root@tty1[/]#  					1min
#
# Wait for shell prompt.
# Create file system on USB stick.
#
type		"mkfs -t vfat -I /dev/sda\0d"
wait_asc	root@tty1[/]#  					10min
#
# Wait for shell prompt.
# Mount USB stick, copy /etc/passwd to it, unmount it.
#
type		"mount /dev/sda /mnt\0d"
wait_asc	root@tty1[/]#  					1min
type		"cp /etc/passwd /mnt\0d"
wait_asc	root@tty1[/]#  					1min
type		"umount /mnt\0d"
wait_asc	root@tty1[/]#  					1min