Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/oe-alliance/ofgwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
vanhofen committed Jan 21, 2023
2 parents a6719ac + c11b50b commit 4413057
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ofgwrite.c
Expand Up @@ -51,7 +51,7 @@ char rootfs_mount_point[1000];
enum RootfsTypeEnum rootfs_type;
int stop_neutrino_needed = 1;

const char ofgwrite_version[] = "4.6.2";
const char ofgwrite_version[] = "4.6.3";

struct struct_mountlist
{
Expand Down Expand Up @@ -210,7 +210,7 @@ int read_args(int argc, char *argv[])
flash_kernel = 1;
if (optarg)
{
if ((!strncmp(optarg, "mtd", 3)) || (!strncmp(optarg, "mmcblk", 6)) || (!strncmp(optarg, "sd", 2)))
if ((!strncmp(optarg, "mtd", 3)) || (!strncmp(optarg, "mmcblk", 6)) || (!strncmp(optarg, "sd", 2)) || (!strncmp(optarg, "boot", 4)))
{
my_printf("Flashing kernel with arg %s\n", optarg);
strcpy(kernel_device_arg, optarg);
Expand All @@ -224,7 +224,7 @@ int read_args(int argc, char *argv[])
flash_rootfs = 1;
if (optarg)
{
if ((!strncmp(optarg, "mtd", 3)) || (!strncmp(optarg, "mmcblk", 6)) || (!strncmp(optarg, "sd", 2)))
if ((!strncmp(optarg, "mtd", 3)) || (!strncmp(optarg, "mmcblk", 6)) || (!strncmp(optarg, "sd", 2)) || (!strncmp(optarg, "dreambox-rootfs", 15)))
{
my_printf("Flashing rootfs with arg %s\n", optarg);
strcpy(rootfs_device_arg, optarg);
Expand Down Expand Up @@ -396,8 +396,7 @@ int read_mtd_file()
/* //NI
if ((strcmp(name, "\"rootfs\"") == 0
|| strcmp(name, "\"rootfs2\"") == 0
|| strcmp(name, "\"dreambox-rootfs\"") == 0
|| strcmp(name, "\"root\"") == 0))
|| strcmp(name, "\"dreambox-rootfs\"") == 0))
*/
if ((strcmp(name, "\"rootfs\"") == 0))
{
Expand Down

0 comments on commit 4413057

Please sign in to comment.