Thread View: ch.comp.os.linux
1 messages
1 total messages
Started by Sven Kirmess
Wed, 07 Apr 1999 00:00
Shell Script um den Modem Status anzuzeigen
Author: Sven Kirmess
Date: Wed, 07 Apr 1999 00:00
Date: Wed, 07 Apr 1999 00:00
40 lines
1534 bytes
1534 bytes
Ich hab mir ein kleines Script geschrieben, um den Modem Status
anzuzeigen. Wenn jemand von euch Lust und Zeit hat, kann er es ja kurz
durchsehen und mich auf allf�llige Verbesserungsvorschl�ge oder probleme
aufmerksam machen.
#! /bin/bash
while [ -e /vmlinuz ]
# sicher nicht optimal... aber immer wahr.
do
if [ -e /var/lock/LCK..ttyS3 ]; then
#Das Lockfile des modems (wird von pppd oder chat angelegt....)
echo -e "\a"
setleds +scroll +num -caps
sleep 1
echo -e "\a"
setleds -scroll -num +caps
sleep 1
echo -e "\a"
# beepser, damit ich weiss, dass die Verbindung aufgebaut wird
while [ -e /var/lock/LCK..ttyS3 ]; do
#die schlaufe, welche w�hrend der verbindung l�uft. Keine Beepser
mehr...
setleds +scroll +num -caps
sleep 1
setleds -scroll -num +caps
sleep 1
done
else
#Keine Verbindung, also LEDs zur�cksetzen und auf Verbindung warten...
setleds +num -scroll -caps
sleep 5
fi
done
--
Sven
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads