Re: How to tell the system to load right name for wireless card?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, Feb 17, 2016 at 07:02:07AM -0500, Jude DaShiell wrote:
> [...] In my .bashrc I put ping -c 5
> www.google.com|grep % to test if I have a network connection on
> reboot or power up [...]
Hint: ping tells you with an exit status of 0 that all's dandy, so
perhaps you don't need the grep. Ex.
# 8 sec deadline
if ping -c 2 -w 4 <your reference host> ; then
echo "yay"
else
echo "nay"
fi
Add option -q and others to taste.
Of course, if you are just displaying (and not firing off other scripts)
grep is fine :-)
regards
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlbEXXkACgkQBcgs9XrR2kaiVgCfSHGgS7BmG7PmdQfSXH1OAVPa
XTIAn27Oyy8/f9C/Gbl2jq4WUWR4Vj6Z
=VT2Z
-----END PGP SIGNATURE-----
Reply to: