diff options
Diffstat (limited to 'device-functions.c')
-rw-r--r-- | device-functions.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/device-functions.c b/device-functions.c index 0e5338a..be715a2 100644 --- a/device-functions.c +++ b/device-functions.c @@ -4635,6 +4635,14 @@ int IO_Setup_RS232(int baud, char parity, char stopbits, char databits, char har // FIXME implement serial port changes here + FILE* configfile = fopen("/tmp/instgettyopts", "w"); + if(configfile){ + 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 (1) { // FIXME if changes are successful globals.Flash.baud = baud; globals.Flash.parity = parity; |