Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Dec 2006 08:26:00 GMT
From:      Richard Arends<richard@unixguru.nl>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   i386/106113: typo in man acpi_ibm
Message-ID:  <200612010826.kB18Q0vR090271@www.freebsd.org>
Resent-Message-ID: <200612010830.kB18UBLm015508@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         106113
>Category:       i386
>Synopsis:       typo in man acpi_ibm
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-i386
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 01 08:30:10 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Richard Arends
>Release:        6.2-PRERELEASE
>Organization:
>Environment:
FreeBSD bsdlap.unixguru.nl 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #1: Wed Nov 29 12:18:04 CET 2006 root@bsdlap.unixguru.nl:/usr/obj/usr/src/sys/BSDLAP  i386
>Description:
In man acpi-ibm there's an example shell script. The first case (0x05) a case termination (;;) is missing.

 case ${NOTIFY} in
                   0x05)
                           LEVEL=`sysctl -n dev.acpi_${OEM}.0.bluetooth`
                           if [ "$LEVEL" = "1" ]
                           then
                                   sysctl dev.acpi_${OEM}.0.bluetooth=0
                                   MESSAGE="bluetooth disabled"
                           else
                                   sysctl dev.acpi_${OEM}.0.bluetooth=1
                                   MESSAGE="bluetooth enabled"
                           fi
                   0x10|0x11)

>How-To-Repeat:
man acpi-ibm
>Fix:
Put a case termination in the first case

 case ${NOTIFY} in
                   0x05)
                           LEVEL=`sysctl -n dev.acpi_${OEM}.0.bluetooth`
                           if [ "$LEVEL" = "1" ]
                           then
                                   sysctl dev.acpi_${OEM}.0.bluetooth=0
                                   MESSAGE="bluetooth disabled"
                           else
                                   sysctl dev.acpi_${OEM}.0.bluetooth=1
                                   MESSAGE="bluetooth enabled"
                           fi
++                         ;;
                   0x10|0x11)

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612010826.kB18Q0vR090271>