summaryrefslogtreecommitdiff
path: root/device-functions.c
diff options
context:
space:
mode:
authorroot <root@avtech.domain.avtechpulse.com>1970-01-01 09:04:36 +0900
committerroot <root@avtech.domain.avtechpulse.com>1970-01-01 09:04:36 +0900
commite54f6f8019d03dc3f66e68b6442a23ddb820cc32 (patch)
tree8620199b6d4dcd87819129d44cc2b3d54b98acc9 /device-functions.c
parent9e02a7ee2335ba91e5bd0cbb79ab8a5a58f57bde (diff)
fix rs232 and flash initialization
Diffstat (limited to 'device-functions.c')
-rw-r--r--device-functions.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/device-functions.c b/device-functions.c
index 061f759..20918a8 100644
--- a/device-functions.c
+++ b/device-functions.c
@@ -4402,6 +4402,7 @@ void Main_update_shift_registers()
int IO_Setup_RS232(int baud, char hardhand)
{
+ remount_root_as_writeable ();
FILE* configfile = fopen("/tmp/instgettyopts", "w");
if(configfile) {
fprintf(configfile, "OPTS=-L %s\n", hardhand ? "-h" : "");
@@ -4409,6 +4410,7 @@ int IO_Setup_RS232(int baud, char hardhand)
fclose(configfile);
system("systemctl --no-block restart inst-getty@ttyO5.service");
}
+ remount_root_as_not_writeable();
globals.Flash.baud = baud;
globals.Flash.hardhand = hardhand;