@@ -0,0 +1,3 | |||
|
1 | # Configuration template file used by rpi23-gen-image.sh | |
|
2 | RELEASE=stretch | |
|
3 | BUILD_KERNEL=true |
@@ -0,0 +1,4 | |||
|
1 | # Configuration template file used by rpi23-gen-image.sh | |
|
2 | RPI_MODEL=3 | |
|
3 | RELEASE=jessie | |
|
4 | BUILD_KERNEL=true |
@@ -0,0 +1,4 | |||
|
1 | # Configuration template file used by rpi23-gen-image.sh | |
|
2 | RPI_MODEL=3 | |
|
3 | RELEASE=stretch | |
|
4 | BUILD_KERNEL=true |
@@ -42,3 +42,14 install_exec() { | |||
|
42 | 42 | # Install file with root exec permissions |
|
43 | 43 | install -o root -g root -m 744 $* |
|
44 | 44 | } |
|
45 | ||
|
46 | use_template () { | |
|
47 | # Test if configuration template file exists | |
|
48 | if [ ! -r "./templates/${CONFIG_TEMPLATE}" ] ; then | |
|
49 | echo "error: configuration template ${CONFIG_TEMPLATE} not found" | |
|
50 | exit 1 | |
|
51 | fi | |
|
52 | ||
|
53 | # Load template configuration parameters | |
|
54 | . "./templates/${CONFIG_TEMPLATE}" | |
|
55 | } |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant