diff options
author | root <root@avtech.domain.avtechpulse.com> | 1970-01-01 09:33:41 +0900 |
---|---|---|
committer | root <root@avtech.domain.avtechpulse.com> | 1970-01-01 09:33:41 +0900 |
commit | 505acceba17a4987fb445cce1eed792cf41e93c6 (patch) | |
tree | c70e52da006205ef14d32547043a6e79ce7c1d9a /device-functions.c | |
parent | 49d90621d371d450faca9d3f5e11089d1e30eb24 (diff) |
add mutex around remounting, and add debug messagesINSTRUMENT_6_2_02
Diffstat (limited to 'device-functions.c')
-rw-r--r-- | device-functions.c | 12 |
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 { |