1#!/usr/bin/bash 2 3# 4# This file and its contents are supplied under the terms of the 5# Common Development and Distribution License ("CDDL"), version 1.0. 6# You may only use this file in accordance with the terms of version 7# 1.0 of the CDDL. 8# 9# A full copy of the text of the CDDL should have accompanied this 10# source. A copy of the CDDL is also available via the Internet at 11# http://www.illumos.org/license/CDDL. 12# 13 14# 15# Copyright 2019 Joyent, Inc. 16# 17 18grep ufmtest /etc/name_to_major &> /dev/null 19if [[ $? -eq 1 ]]; then 20 printf "ufmtest driver is not currently installed\n" 21 exit 0 22fi 23 24printf "Removing ufmtest driver ...\n" 25/usr/sbin/rem_drv ufmtest 26if [[ $? -ne 0 ]]; then 27 printf "Failed to remove the ufmtest driver.\n" 1>&2 28 exit 1 29else 30 exit 0 31fi 32 33