return the status of the SelectBay in a docking station.
tdocked [ -h ]
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.
to be used in a shell script etc. to determine whether the laptop is
docked and run appropriate programs.
The SelectBay is empty
The SelectBay contains a floppy drive
The SelectBay contains an ATAPI device such as a CD-ROM
The SelectBay contains an IDE hard disk
The SelectBay contains a second battery
The system does not support SelectBay devices
The docking station is not attached to the laptop.
The computer is not a Toshiba laptop.
Print a short synopsis of the program and what the various exit codes mean.
The program may return with an exit code of 0x83 on a laptop which does
not support a docking station.
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.