#!/bin/bash
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: MIT

# Called by udev with: $1 = device name (e.g. nvme0), $2 = value
DEVICE="/dev/$1"
VALUE="$2"

nvme set-feature "$DEVICE" -f 8 --value "$VALUE"
