cron: add procd listeners for crontabs
[openwrt/staging/wigyori.git] / package / utils / busybox / convert_menuconfig.pl
index 7342fbd8a1bd7385694277bb24036f4a2cdd2de8..70518809aaed22a9fc707a3069ad1cd86e0d4edd 100755 (executable)
@@ -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;