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" VERSION="1.1.5"
TC=$(which tc) TC=$(command -v tc)
ETHTOOL=$(which ethtool) ETHTOOL=$(command -v ethtool)
IP=$(which ip) IP=$(command -v ip)
MODPROBE=$(which modprobe) MODPROBE=$(command -v modprobe)
error_handler () { error_handler () {