diff options
author | root <root@avtech.domain.avtechpulse.com> | 1999-12-31 19:18:59 -0500 |
---|---|---|
committer | root <root@avtech.domain.avtechpulse.com> | 1999-12-31 19:18:59 -0500 |
commit | 05cd0a817efa7e46ef0609f66eeb1888718e2cd6 (patch) | |
tree | 0b962babfe8b24e2991757da5eefe30734922be6 /device-functions.c | |
parent | b2c2c72d381ab1b32fa5b5fc4e890fef6c2bf1e0 (diff) |
first working serial configuration
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; |