Projet

Général

Profil

Révision 6995742e

ID6995742e591fcd11088801dced1d08ef83c8da21
Parent 272220c6
Enfant 725d9041, 9b3aa267

Ajouté par Lars Kruse il y a environ 7 ans

Plugins tc_*: check existence of "tc" during autoconf

Voir les différences:

plugins/network/tc_drops_
21 21

  
22 22
case $1 in
23 23
    autoconf)
24
	if [ -r /proc/net/dev ]; then
25
	    echo yes
26
	else
24
	if [ ! -r /proc/net/dev ]; then
27 25
	    echo "no (/proc/net/dev not found)"
26
	elif ! which tc >/dev/null; then
27
	    echo "no (missing 'tc' executable)"
28
	else
29
	    echo yes
28 30
	fi
29 31
	exit 0
30 32
	;;

Formats disponibles : Unified diff