]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- added single-letter-values to is_yes and is_no
authorSebastian Zagrodzki <sebek@zagrodzki.net>
Sat, 8 Apr 2000 21:41:31 +0000 (21:41 +0000)
committerSebastian Zagrodzki <sebek@zagrodzki.net>
Sat, 8 Apr 2000 21:41:31 +0000 (21:41 +0000)
svn-id: @707

rc.d/init.d/functions

index 744954b0b350c69c5403594b3fe0d2e880ddcda3..7274246f6eeb957d0bafa61ddaad989ece6246f2 100644 (file)
@@ -1,7 +1,7 @@
 # functions    This file contains functions to be used by most or all
 #              shell scripts in the /etc/init.d directory.
 #
-# $Id: functions,v 1.47 2000/04/01 10:24:30 waszi Exp $
+# $Id: functions,v 1.48 2000/04/08 21:41:31 zagrodzki Exp $
 #
 # Author:      Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
 # Hacked by:    Greg Galloway and Marc Ewing
@@ -404,6 +404,8 @@ is_yes()
        [ "$1" = "true" ] ||\
        [ "$1" = "True" ] ||\
        [ "$1" = "TRUE" ] ||\
+       [ "$1" = "Y" ]||\
+       [ "$1" = "y" ]||\
        [ "$1" = "1" ] ||\
                return 1
        return 0
@@ -424,6 +426,8 @@ is_no()
        [ "$1" = "false" ] ||\
        [ "$1" = "False" ] ||\
        [ "$1" = "FALSE" ] ||\
+       [ "$1" = "N" ] ||\
+       [ "$1" = "n" ] ||\
        [ "$1" = "0" ] ||\
        [ "$1" = "" ] ||\
                return 1
This page took 0.588541 seconds and 4 git commands to generate.