powerpc-utils/nvsetenv
Troy Dawson dd774114c8 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/powerpc-utils#9b0e5ec27ec43e9598d4f61f854f4f8384a40b55
2020-10-20 07:35:23 -07:00

15 lines
271 B
Bash

#!/bin/sh
if [ "$1" = "--version" ]; then
echo This version of nvsetenv is just a wrapper to invoke nvram
exit 0
fi
if [ -z "$1" ]; then
nvram --print-config
elif [ -z "$2" ]; then
nvram --print-config="$1"
else
nvram --update-config "$1"="$2"
fi
exit $?