tdocked(1)

tdocked1

Return the status of the selectbay in a docking station.

Usage

tdocked [-h]

Overview

tdocked reports on the status of the SelectBay in a docking station attached to a Toshiba laptop. The status is returned in the exit value of the program. This enables tdocked to be used in a shell script etc. to determine whether the laptop is docked and run appropriate programs.

Exit status

0x00

The SelectBay is empty

0x01

The SelectBay contains a floppy drive

0x02

The SelectBay contains an ATAPI device such as a CD-ROM

0x03

The SelectBay contains an IDE hard disk

0x04

The SelectBay contains a second battery

0x80

The system does not support SelectBay devices

0x83

The docking station is not attached to the laptop.

0xff

The computer is not a Toshiba laptop.

Options

-h

Print a short synopsis of the program and what the various exit codes mean.

Releases

6 releases since Debian 2.2 (Potato); the text changed 1 time.

  1. 2.2
  2. 3.0–6.0

Bugs

The program may return with an exit code of 0x83 on a laptop which does not support a docking station.

Author

This program was written by Jonathan Buzzard ([email protected]) and may be freely distributed under the terms of the GNU General Public License. There is ABSOLUTELY NO WARRANTY for this program.

From toshutils 2.0.1+debian-24 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.