Skip to content

Instantly share code, notes, and snippets.

@oskarirauta
Created February 22, 2024 23:17
Show Gist options
  • Save oskarirauta/b38bd262a3a9b642562e89d183eb6ba9 to your computer and use it in GitHub Desktop.
Save oskarirauta/b38bd262a3a9b642562e89d183eb6ba9 to your computer and use it in GitHub Desktop.
add stop command to uxc (alias to kill)
--- a/uxc.c
+++ b/uxc.c
@@ -1598,7 +1598,7 @@ int main(int argc, char **argv)
cmd = CMD_START;
else if(!strcmp("state", argv[optind]))
cmd = CMD_STATE;
- else if(!strcmp("kill", argv[optind]))
+ else if(!strcmp("kill", argv[optind]) || !strcmp("stop", argv[optind]))
cmd = CMD_KILL;
else if(!strcmp("enable", argv[optind]))
cmd = CMD_ENABLE;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment