TPASSWD(1)
NAME
tdocked - return the status of the SelectBay in a docking station.
SYNOPSIS
tdocked [ -h ]
DESCRIPTION
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 CODES
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.
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 (jonathan@buzzard.org.uk)
and may be freely distributed under the terms of the GNU General Public
License. There is ABSOLUTELY NO WARRANTY for this program.