1*fd71220bSRobert Mustacchi#!/usr/bin/ksh 2*fd71220bSRobert Mustacchi# 3*fd71220bSRobert Mustacchi# 4*fd71220bSRobert Mustacchi# This file and its contents are supplied under the terms of the 5*fd71220bSRobert Mustacchi# Common Development and Distribution License ("CDDL"), version 1.0. 6*fd71220bSRobert Mustacchi# You may only use this file in accordance with the terms of version 7*fd71220bSRobert Mustacchi# 1.0 of the CDDL. 8*fd71220bSRobert Mustacchi# 9*fd71220bSRobert Mustacchi# A full copy of the text of the CDDL should have accompanied this 10*fd71220bSRobert Mustacchi# source. A copy of the CDDL is also available via the Internet at 11*fd71220bSRobert Mustacchi# http://www.illumos.org/license/CDDL. 12*fd71220bSRobert Mustacchi# 13*fd71220bSRobert Mustacchi 14*fd71220bSRobert Mustacchi# 15*fd71220bSRobert Mustacchi# Copyright 2022 Oxide Computer Company 16*fd71220bSRobert Mustacchi# 17*fd71220bSRobert Mustacchi 18*fd71220bSRobert Mustacchiif ! add_drv gpio_sim; then 19*fd71220bSRobert Mustacchi printf "failed to add gpio_sim driver\n" 2>&1 20*fd71220bSRobert Mustacchi exit 1 21*fd71220bSRobert Mustacchifi 22*fd71220bSRobert Mustacchi 23*fd71220bSRobert Mustacchiexit 0 24