Use command instead of which to auto locate executables
This commit is contained in:
parent
e57574b0b7
commit
b61bbd9171
|
|
@ -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 () {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue