File tree Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
echo " WRITING CONFIGURATION FILE"
3
-
4
- touch src/setup.h
5
-
6
- echo -e " #define DEVICE_MODEL \" Travis\" \n$( cat config.example.h) " > config.h
7
-
8
- echo " Wrote Travis device model to config.h"
9
-
10
- if [ -z " $RGB_TYPE " ]; then
11
- RGB_TYPE=" RGB"
12
- fi
13
-
14
- echo -e " #define $RGB_TYPE \n$( cat config.h) " > config.h
15
-
16
- echo " Wrote #define $RGB_TYPE to config.h"
17
-
18
- if [ -n " $REMOTE_TYPE " ]; then
19
- echo -e " #define $REMOTE_TYPE \n$( cat config.h) " > config.h
20
- echo " Wrote #define $REMOTE_TYPE to config.h"
21
- fi
22
-
23
- if [ -n " $MQTT_MODE " ]; then
24
- echo -e " #define $MQTT_MODE \n$( cat config.h) " > config.h
25
- echo " Wrote #define $MQTT_MODE to config.h"
26
- fi
27
-
28
- if [ -n " $MQTT_DISCOVERY " ]; then
29
- echo -e " #define $MQTT_DISCOVERY \n$( cat config.h) " > config.h
30
- echo " Wrote #define $MQTT_DISCOVERY to config.h"
31
- fi
32
-
33
- echo " FINISHED WRITING CONFIGURATION FILE"
You can’t perform that action at this time.
0 commit comments