aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2016-10-11 16:55:00 +0200
committerLukáš Nykrýn <lnykryn@redhat.com>2016-10-27 16:07:38 +0200
commit851dddf4a1d36522f440d3ca7710d40ef55af610 (patch)
tree43cc2c292f1bf3764957d6ba7afb85605d456f22
parentd59202d1d37c23126e17f8bc05d8a05d059b72a0 (diff)
downloadinitscripts-851dddf4a1d36522f440d3ca7710d40ef55af610.tar
initscripts-851dddf4a1d36522f440d3ca7710d40ef55af610.tar.gz
initscripts-851dddf4a1d36522f440d3ca7710d40ef55af610.tar.bz2
initscripts-851dddf4a1d36522f440d3ca7710d40ef55af610.tar.xz
initscripts-851dddf4a1d36522f440d3ca7710d40ef55af610.zip
Support boolean values in is_true() & is_false() functions
-rw-r--r--rc.d/init.d/functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index 7ac305b9..e1d6ecd5 100644
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -786,7 +786,7 @@ is_ignored_file() {
# Evaluate shvar-style booleans
is_true() {
case "$1" in
- [tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
+ [tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE] | 1)
return 0
;;
esac
@@ -796,7 +796,7 @@ is_true() {
# Evaluate shvar-style booleans
is_false() {
case "$1" in
- [fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
+ [fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE] | 0)
return 0
;;
esac