From: Alfie Costa (agcosta@gis.net)
Date: Thu Apr 06 2000 - 06:27:34 CEST
Second tweak:
In /usr/bin/connected
This sequence:
if [ "${conn}" ] ; then
return 0
else
return 1
fi
...can be shortened to:
[ "${conn}" ] ; return $?
...which does the same thing, but maybe is harder to read, and if so it
deserves a comment like "return 0 if $conn exists, 1 if not".
The changed file is attached, though the name is slightly truncated, because
Pegasus Mail, (or rather Win95), doesn't completely understand the 'umsdos'
file system.
#!/bin/sh
conn="`ifconfig|grep ppp`"
conn="${conn}`ifconfig|grep eth`"
[ "${conn}" ] ; return $?
---------------------------------------------------------------------
To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.auc.dk
For additional commands, e-mail: mulinux-help@sunsite.auc.dk
This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:13 CET