aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/busybox/convert_menuconfig.pl
diff options
context:
space:
mode:
Diffstat (limited to 'package/utils/busybox/convert_menuconfig.pl')
-rwxr-xr-xpackage/utils/busybox/convert_menuconfig.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/utils/busybox/convert_menuconfig.pl b/package/utils/busybox/convert_menuconfig.pl
index 7342fbd8a1..70518809aa 100755
--- a/package/utils/busybox/convert_menuconfig.pl
+++ b/package/utils/busybox/convert_menuconfig.pl
@@ -41,7 +41,7 @@ while (<FIND>) {
undef $cur;
undef $default_set;
}
- $line =~ s/^(\s*source\s+)/$1package\/utils\/busybox\/config\//;
+ $line =~ s/^(\s*source\s+)([^\/]+\/)*([^\/]+\/[^\/]+)$/$1$3/;
if ($line =~ /^(\s*range\s*)(\w+)(\s+)(\w+)\s*$/) {
my $prefix = $1;
my $r1 = $2;