printf ("Package \"%s\" not found!\n", find_pkg->name);
break;
case 'i':
- err = opkg_install_package (argv[1], progress_callback, "Installing...");
+ err = opkg_install_package (argv[2], progress_callback, "Installing...");
printf ("\nopkg_install_package returned %d (%s)\n", err, errors[err]);
break;
case 'u':
- if (argv[1][3] == 'd')
+ if (argv[1][2] == 'd')
{
err = opkg_update_package_lists (progress_callback, "Updating...");
printf ("\nopkg_update_package_lists returned %d (%s)\n", err, errors[err]);