diff options
Diffstat (limited to 'device-functions.c')
-rw-r--r-- | device-functions.c | 6 |
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); |