aboutsummaryrefslogtreecommitdiff
path: root/renrot
diff options
context:
space:
mode:
authorAndy Shevchenko <andy@smile.org.ua>2012-03-24 18:15:03 +0000
committerAndy Shevchenko <andy@smile.org.ua>2012-03-24 18:15:03 +0000
commit3066b9f5bfdca9ad863b8ab263406fb658ebe76e (patch)
treede4ec5076c71313dbe09148e7a7e6b82782adaec /renrot
parent83c07bbb5f45cda4ef13b7b2090a86983018435e (diff)
downloadrenrot-3066b9f5bfdca9ad863b8ab263406fb658ebe76e.tar.gz
renrot-3066b9f5bfdca9ad863b8ab263406fb658ebe76e.tar.bz2
append Enable and Disable to boolConv recognized values
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com> git-svn-id: file:///svnroot/renrot/trunk@600 fe2816f4-e837-0410-b10a-f608c9d244a1
Diffstat (limited to 'renrot')
-rwxr-xr-xrenrot4
1 files changed, 2 insertions, 2 deletions
diff --git a/renrot b/renrot
index 704a3bb..0148992 100755
--- a/renrot
+++ b/renrot
@@ -390,9 +390,9 @@ sub boolConv {
# See Also : boolConv()
sub boolConverter {
my $value = trim_value(shift);
- if ($value =~ m/^(0|No|False|Off)$/i) {
+ if ($value =~ m/^(0|No|False|Off|Disable)$/i) {
return 0;
- } elsif ($value =~ m/^(1|Yes|True|On)$/i) {
+ } elsif ($value =~ m/^(1|Yes|True|On|Enable)$/i) {
return 1;
}
return $value;

Return to:

Send suggestions and report system problems to the System administrator.