networkconnect syntax problem solved

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/blinux-list



[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]