Explorar el Código

rename feeds.conf to feeds.conf.default, make feeds.conf override feeds.conf.default this makes it possible to change the feeds lists without having the version control system record it as a change

SVN-Revision: 12328
Felix Fietkau hace 17 años
padre
commit
a74bb3b417
Se han modificado 2 ficheros con 3 adiciones y 1 borrados
  1. 0 0
      feeds.conf.default
  2. 3 1
      scripts/feeds

+ 0 - 0
feeds.conf → feeds.conf.default


+ 3 - 1
scripts/feeds

@@ -23,7 +23,9 @@ sub parse_config() {
 	my $line = 0;
 	my %name;
 
-	open FEEDS, "feeds.conf";
+	open FEEDS, "feeds.conf" or
+		open FEEDS, "feeds.conf.default" or
+		die "Unable to open feeds configuration";
 	while (<FEEDS>) {
 		chomp;
 		s/#.+$//;