1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2025-04-21 12:27:27 +03:00

remove check root permissions

Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
This commit is contained in:
Xiangfu Liu
2010-11-25 10:35:36 +08:00
parent 51ec298a21
commit eb283a6f70
2 changed files with 2 additions and 12 deletions

View File

@@ -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;