File: modem-check

package info (click to toggle)
pdmenu 1.2.69
  • links: PTS
  • area: main
  • in suites: woody
  • size: 652 kB
  • ctags: 254
  • sloc: ansic: 2,012; sh: 297; perl: 75; makefile: 63
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