summaryrefslogtreecommitdiff
path: root/device-functions.c
diff options
context:
space:
mode:
Diffstat (limited to 'device-functions.c')
-rw-r--r--device-functions.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/device-functions.c b/device-functions.c
index 20918a8..8bca0d7 100644
--- a/device-functions.c
+++ b/device-functions.c
@@ -4402,7 +4402,8 @@ void Main_update_shift_registers()
int IO_Setup_RS232(int baud, char hardhand)
{
- remount_root_as_writeable ();
+ printf ("start writeable: rs232 change\n");
+ remount_root_as_writeable (TRUE);
FILE* configfile = fopen("/tmp/instgettyopts", "w");
if(configfile) {
fprintf(configfile, "OPTS=-L %s\n", hardhand ? "-h" : "");
@@ -4410,7 +4411,8 @@ int IO_Setup_RS232(int baud, char hardhand)
fclose(configfile);
system("systemctl --no-block restart inst-getty@ttyO5.service");
}
- remount_root_as_not_writeable();
+ printf ("end writeable: rs232 change\n");
+ remount_root_as_writeable (FALSE);
globals.Flash.baud = baud;
globals.Flash.hardhand = hardhand;
@@ -4497,7 +4499,8 @@ int change_password(gchar *old_password, gchar *new_password)
int result;
result = OK;
- remount_root_as_writeable ();
+ printf ("start writeable: password change\n");
+ remount_root_as_writeable (TRUE);
ctx = lu_start(user, lu_user, NULL, NULL, lu_prompt_console_quiet, NULL, &error);
@@ -4517,7 +4520,8 @@ int change_password(gchar *old_password, gchar *new_password)
lu_end(ctx);
- remount_root_as_not_writeable ();
+ printf ("end writeable: password change\n");
+ remount_root_as_writeable (FALSE);
return result;
} else {