Fixed qos device detection on connection type change.
authorChristian Schmidt <christian.schmidt@ipfire.org>
Sun, 29 Aug 2010 06:42:37 +0000 (08:42 +0200)
committerChristian Schmidt <christian.schmidt@ipfire.org>
Sun, 29 Aug 2010 06:42:37 +0000 (08:42 +0200)
html/cgi-bin/qos.cgi

index 26e0eef..60c75d7 100644 (file)
@@ -76,7 +76,7 @@ $qossettings{'ACK'} = '';
 $qossettings{'MTU'} = '1492';
 $qossettings{'SFQ_PERTUB'} = '10';
 $qossettings{'QLENGTH'} = '30';
-$qossettings{'RED_DEV'} = `cat /var/ipfire/red/iface`;
+$qossettings{'RED_DEV'} = 'ppp0';
 $qossettings{'IMQ_DEV'} = 'imq0';
 $qossettings{'VALID'} = 'yes';
 ### Values that have to be initialized
@@ -113,6 +113,8 @@ $qossettings{'TOS'} = '';
 &General::readhash("${General::swroot}/qos/settings", \%qossettings);
 &Header::getcgihash(\%qossettings);
 
+$qossettings{'RED_DEV'} = `cat /var/ipfire/red/iface`;
+
 my %color = ();
 my %mainsettings = ();
 &General::readhash("${General::swroot}/main/settings", \%mainsettings);