net-snmp/testing/check_for_pskill

18 lines
493 B
Plaintext
Raw Normal View History

2022-06-27 15:01:12 +08:00
#!/bin/sh
2024-04-24 17:23:15 +08:00
# Make sure MinGW32 users have the pskill.exe program to stop the agent and
2022-06-27 15:01:12 +08:00
# snmptrapd
2024-04-24 17:23:15 +08:00
case $(uname) in
MINGW32*)
2022-06-27 15:01:12 +08:00
for e in pskill.exe pslist.exe; do
if [ "x`type $e 2>/dev/null`" = "x" ]; then
echo "Could not find $e. Aborting tests."
echo "$e can be installed as follows:"
echo -- "- Download PSTools.zip from http://technet.microsoft.com/en-us/sysinternals/default."
echo -- "- Copy $e to C:\\MinGW\\msys\\1.0\\bin."
exit 1
fi
done
2024-04-24 17:23:15 +08:00
;;
esac