Update --remove-modules implementation

This commit is contained in:
topjohnwu
2020-10-11 18:30:03 -07:00
parent 735b65c50c
commit d625beb7f3
4 changed files with 48 additions and 44 deletions

View File

@@ -53,7 +53,7 @@ static void request_handler(int client, int req_code, ucred cred) {
exec_sql(client);
break;
case REMOVE_MODULES:
foreach_modules("remove");
remove_modules();
write_int(client, 0);
close(client);
reboot();