#!/bin/bash # # Script to extract a poky qemux86 rootfs and prepare it for # use as a chroot # set -e case $# in 2) TGZ=$1 TARGET=$2 ;; *) echo "Invalid arguments, please run as:" echo "$ $0 " exit 1 esac echo "Extracting $TGZ into $TARGET" test -d "$TARGET" && { echo "$TARGET already exists, please remove and retry or specify a dirferent directory." ; exit 1 ; } mkdir --parents "$TARGET" tar -C "$TARGET" --exclude ./dev/\* -jxp -f "$TGZ" echo "HAVE_TOUCHSCREEN=0" >> "$TARGET/etc/formfactor/machconfig" echo "DISPLAY_WIDTH_PIXELS=640" >> "$TARGET/etc/formfactor/machconfig" echo "DISPLAY_HEIGHT_PIXELS=480" >> "$TARGET/etc/formfactor/machconfig" cp /etc/passwd "$TARGET/etc/passwd" cp /etc/resolv.conf "$TARGET/etc/resolv.conf" touch "$TARGET/.pokychroot" ytics.com/analytics.js','ga'); ga('create', 'UA-58643691-1', 'auto'); ga('send', 'pageview');
summaryrefslogtreecommitdiff
blob: 9096b146623df634b4cf615bf6a5b7a6d1dd0995 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87