Created
February 22, 2024 23:17
-
-
Save oskarirauta/b38bd262a3a9b642562e89d183eb6ba9 to your computer and use it in GitHub Desktop.
add stop command to uxc (alias to kill)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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