File: modem-check

package info (click to toggle)
pdmenu 1.2.89
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 824 kB
  • ctags: 242
  • sloc: sh: 2,972; ansic: 2,028; makefile: 131; perl: 58
file content (6 lines) | stat: -rwxr-xr-x 170 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
#! /bin/sh
if [ -f /var/lock/LCK..modem ] 2> /dev/null; then
    echo "Yes, your modem seems to be in use."
else
    echo "No, your modem appears to be disconnected."
fi