diff --git a/usbboot/src/main.c b/usbboot/src/main.c index 15faafe..c72e9e0 100644 --- a/usbboot/src/main.c +++ b/usbboot/src/main.c @@ -37,7 +37,7 @@ extern char * stage2; static void help(void) { - printf("Usage: usbboot [options] ...(must run as root)\n" + printf("Usage: usbboot [options] ...\n" " -h --help\t\t\tPrint this help message\n" " -v --version\t\t\tPrint the version number\n" " -c --command\t\t\tDirect run the commands, split by ';'\n" @@ -113,11 +113,6 @@ int main(int argc, char **argv) } } - if ((getuid()) || (getgid())) { - fprintf(stderr, "Error - you must be root to run '%s'\n", argv[0]); - return EXIT_FAILURE; - } - if (usb_ingenic_init(&ingenic_dev) < 1) return EXIT_FAILURE; diff --git a/xbboot/host-app/host_main.c b/xbboot/host-app/host_main.c index 0d6fcc0..8d8a923 100644 --- a/xbboot/host-app/host_main.c +++ b/xbboot/host-app/host_main.c @@ -70,11 +70,6 @@ int main(int argc, char** argv) return EXIT_SUCCESS; } - if ((getuid()) || (getgid())) { - fprintf(stderr, "Error - you must be root to run '%s'\n", argv[0]); - return EXIT_FAILURE; - } - if (!strcmp(argv[1], "-u") || !strcmp(argv[1], "--upload")) { if (argc != 4) { show_help(); @@ -435,7 +430,7 @@ void show_help() "(c) 2009 Wolfgang Spraul\n" "Report bugs to , .\n" "\n" - "xbboot [vendor_request] ... (must run as root)\n" + "xbboot [vendor_request] ...\n" " -h --help print this help message\n" " -v --version print the version number\n" " [-u | --upload]
upload file at to
then jump to
\n"