summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2016-02-18 09:39:55 -0500
committerMichael J. Chudobiak <mjc@avtechpulse.com>2016-02-18 09:39:55 -0500
commit67a00462d49217fa12d6761942b8c8964e492b3b (patch)
treefd473d3c635f4dabf4cc1cd1cec6a672a2d4aad7
parent219197bc34ecf91c4db62fd17ef3002e9b81f4c2 (diff)
different serial ports on Olimex
-rw-r--r--device-functions.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/device-functions.c b/device-functions.c
index 8bca0d7..98b51d5 100644
--- a/device-functions.c
+++ b/device-functions.c
@@ -4409,7 +4409,11 @@ int IO_Setup_RS232(int baud, char hardhand)
fprintf(configfile, "OPTS=-L %s\n", hardhand ? "-h" : "");
fprintf(configfile, "BAUD=%d\n", baud);
fclose(configfile);
- system("systemctl --no-block restart inst-getty@ttyO5.service");
+ if (globals.HWDetect.olimex) {
+ system("systemctl --no-block restart inst-getty@ttyS5.service");
+ } else if (globals.HWDetect.beaglebone) {
+ system("systemctl --no-block restart inst-getty@ttyO5.service");
+ }
}
printf ("end writeable: rs232 change\n");
remount_root_as_writeable (FALSE);