networkconnect syntax problem solved

Jude DaShiell jdashiel at panix.com
Fri Nov 6 17:17:54 UTC 2015


#!/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.
  --




More information about the Blinux-list mailing list