From 31a36c2c9bd6c87e96f6548dae4f2a515430597c Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 6 Jul 2007 19:24:39 +0000 Subject: [PATCH] handle /usr/bin location of sensors command in example scripts printed by sensors-detect git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4568 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/detect/sensors-detect | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index f4769b09..669f33e5 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -5632,7 +5632,9 @@ sub main print "#----cut here----\n". $modprobes. "# sleep 2 # optional\n". - "/usr/local/bin/sensors -s # recommended\n". + (-e '/usr/bin/sensors' ? + "/usr/bin/sensors -s # recommended\n" : + "/usr/local/bin/sensors -s # recommended\n") . "#----cut here----\n\n"; print "If you have some drivers built into your kernel, the list above will\n".