#!/bin/bash

# 确保具备killall工具
yum install psmisc -y
killall -V >/dev/null 2>&1
if [[ $? -ne 0 ]]; then
    echo "missing killall!"
    exit 1
fi

# 确保具备smartctl工具
yum install smartmontools -y
smartctl -h >/dev/null 2>&1
if [[ $? -ne 0 ]]; then
    echo "missing smartctl!"
    exit 2
fi

