File: ltsp-common-functions

package info (click to toggle)
ltsp 5.1.10-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,080 kB
  • ctags: 145
  • sloc: sh: 3,101; ansic: 605; python: 234; perl: 225; lex: 152; makefile: 135; yacc: 58
file content (13 lines) | stat: -rw-r--r-- 306 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
# Common functions shared by LTSP scripts

boolean_is_true(){
    case $1 in
       # match all cases of true|y|yes
       [Tt][Rr][Uu][Ee]|[Yy]|[Yy][Ee][Ss]) return 0 ;;
       *) return 1 ;;
    esac
}

if [ -f /usr/share/ltsp/ltsp-vendor-functions ]; then
    . /usr/share/ltsp/ltsp-vendor-functions
fi