/ firmware / src / programs / coreutils / whoami.cpp
whoami.cpp
 1  #include "coreutils.h"
 2  #include <config.h>
 3  
 4  #include <stdio.h>
 5  
 6  int programs::coreutils::cmd_whoami(int argc, char **argv) {
 7    (void)argv;
 8    if (argc != 1) { printf("usage: whoami\n"); return 1; }
 9    printf("%s\n", CONFIG_SSH_USER);
10    return 0;
11  }