X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/771e1b7b9dd9071e78ac6aa460bcb68240ff9d14..b8360eaf235b1de07d7113c553f7493b699cc174:/scripts/adam2flash-502T.pl diff --git a/scripts/adam2flash-502T.pl b/scripts/adam2flash-502T.pl index 6d1bf3ce1..0ed296d60 100644 --- a/scripts/adam2flash-502T.pl +++ b/scripts/adam2flash-502T.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # # D-Link DSL-502T flash utility # @@ -257,7 +257,7 @@ print STDERR "checking hardware.. "; my $prd = $ftp->getenv("ProductID"); my $usb = $ftp->getenv("usb_prod"); print STDERR "$prd / $usb.\n"; -($prd eq "AR7RD") or die "doesn't look like a DSL-502T?"; +($prd eq "AR7RD" || $prd eq "AR7DB") or die "doesn't look like a DSL-502T?"; ($usb eq "DSL-502T") or die "doesn't look like a DSL-502T?"; #