anitazha / rpms / ndctl

Forked from rpms/ndctl 2 years ago
Clone
Bryan Gurney bb0dc7
#!/bin/bash
Bryan Gurney bb0dc7
Bryan Gurney bb0dc7
# Copyright (c) 2016 Red Hat, Inc.
Bryan Gurney bb0dc7
#
Bryan Gurney bb0dc7
# This program is free software: you can redistribute it and/or modify
Bryan Gurney bb0dc7
# it under the terms of the GNU General Public License as published by
Bryan Gurney bb0dc7
# the Free Software Foundation, either version 3 of the License, or
Bryan Gurney bb0dc7
# (at your option) any later version.
Bryan Gurney bb0dc7
#
Bryan Gurney bb0dc7
# This program is distributed in the hope that it will be useful,
Bryan Gurney bb0dc7
# but WITHOUT ANY WARRANTY; without even the implied warranty of
Bryan Gurney bb0dc7
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Bryan Gurney bb0dc7
# GNU General Public License for more details.
Bryan Gurney bb0dc7
#
Bryan Gurney bb0dc7
# You should have received a copy of the GNU General Public License
Bryan Gurney bb0dc7
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
Bryan Gurney bb0dc7
Bryan Gurney bb0dc7
# Author: Yi Zhang  <yizhan@redhat.com>
Bryan Gurney bb0dc7
Bryan Gurney bb0dc7
#set -x
Bryan Gurney bb0dc7
source ../include/tc.sh || exit 200
Bryan Gurney bb0dc7
Bryan Gurney bb0dc7
tlog "running $0"
Bryan Gurney bb0dc7
Bryan Gurney bb0dc7
tok "yum -y reinstall ndctl"
Bryan Gurney bb0dc7
tok "yum -y remove ndctl"
Bryan Gurney bb0dc7
tok "yum -y install ndctl"
Bryan Gurney bb0dc7
tok "which ndctl"
Bryan Gurney bb0dc7
tok "yum info ndctl"
Bryan Gurney bb0dc7
tok "[[ -f "/usr/bin/ndctl" ]]"
Bryan Gurney bb0dc7
tok "ndctl --list-cmds"
Bryan Gurney bb0dc7
tok "ndctl version"