mirror of https://github.com/aredn/aredn.git
Fix for uci_set_indexed_option() inserting multiple empty sections (#78)
This commit is contained in:
parent
cdf8057f65
commit
1381cf3868
|
@ -38,7 +38,7 @@
|
||||||
sub uci_get_sectiontype_count()
|
sub uci_get_sectiontype_count()
|
||||||
{
|
{
|
||||||
my ($config, $stype)=@_;
|
my ($config, $stype)=@_;
|
||||||
my $cmd=sprintf('uci show %s|egrep %s\.\@%s.*=%s|wc -l',$config,$stype,$stype,$stype);
|
my $cmd=sprintf('uci show %s|egrep %s\.\@%s.*=%s|wc -l',$config,$config,$stype,$stype);
|
||||||
my $res=`$cmd`;
|
my $res=`$cmd`;
|
||||||
my $rc=$?;
|
my $rc=$?;
|
||||||
chomp($res);
|
chomp($res);
|
||||||
|
|
Loading…
Reference in New Issue