1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-13 10:59:13 +02:00
openwrt-packages/utils/smartmontools/test.sh
Maxim Storchak dc32fc0e47 smartmontools: update to 7.2
Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
2021-01-02 11:56:02 +02:00

6 lines
82 B
Bash

#!/bin/sh
case "$1" in
smartctl|smartd) "$1" -V | head -n 1 | grep "$2" ;;
esac