Use command instead of which to auto locate executables

This commit is contained in:
hk 2017-10-11 22:05:58 +02:00
parent e57574b0b7
commit b61bbd9171
1 changed files with 4 additions and 4 deletions

View File

@ -2,10 +2,10 @@
VERSION="1.1.5"
TC=$(which tc)
ETHTOOL=$(which ethtool)
IP=$(which ip)
MODPROBE=$(which modprobe)
TC=$(command -v tc)
ETHTOOL=$(command -v ethtool)
IP=$(command -v ip)
MODPROBE=$(command -v modprobe)
error_handler () {