~ubuntu-branches/ubuntu/maverick/eglibc/maverick-security

« back to all changes in this revision

Viewing changes to debian/script.in/nsscheck.sh

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-05-30 11:05:12 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100530110512-axurnekxr2yygcf2
Tags: 2.12-0ubuntu1
* Build eglibc_2.12.orig.tar.gz, based on 2.12 branch (r10591).
* Merge with Debian (r4299, trunk).

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
            rl=$(runlevel | sed 's/.*\ //')
18
18
            for service in $check; do
19
19
                if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
20
 
                    invoke-rc.d ${service} status 2>/dev/null || status=$?
21
 
                    if [ "$status" = "0" ] || [ "$status" = "1" ] ; then
 
20
                    invoke-rc.d ${service} status 2>/dev/null && status=0 || status=$?
 
21
                    if [ "$status" = "0" ] || [ "$status" = "2" ] ; then
22
22
                        services="$service $services"
23
23
                    elif [ "$status" = "100" ] ; then
24
24
                        echo "WARNING: init script for $service not found."