#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2017, Jeff Layton <jlayton@redhat.com>

. ./common/config
. ./common/dmerror

if [ -z "$DMERROR_DEV" ]; then
	echo "Caller should have run _dmerror_init."
	exit 1
fi

case $1 in
load_error_table)
	_dmerror_load_error_table
	;;
load_working_table)
	_dmerror_load_working_table
	;;
*)
	echo "Usage: $0 {load_error_table|load_working_table}"
	exit 1
	;;
esac

status=0
exit
