networkconnect syntax problem solved

Jude DaShiell <[email protected]>
Newsgroups gmane.linux.redhat.blinux.general
Message-ID <[email protected]>
#!/usr/bin/env bash
set -e
if [ -x /usr/bin/ethtool ]; then
     sudo -H ethtool wlp0s2f1u2
if [ $? -gt 0 ]; then
    sudo -H dhcpcd
fi
else
     echo "error: ethtool is not installed."
fi

That ethtool package is more civilized than ping.  The hex address on the 
ethtool line I needed to put there in order for ethtool to operate at all. 
Just replace that with something that's locally correct and the script 
should be or become useable where you are.
  --
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.