2007-11-28 02:13:54 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2007-12-03 03:16:36 +00:00
|
|
|
if [ "$1" = "--version" ]; then
|
|
|
|
echo This version of nvsetenv is just a wrapper to invoke nvram
|
|
|
|
exit 0
|
|
|
|
fi
|
2007-11-28 02:13:54 +00:00
|
|
|
if [ -z "$1" ]; then
|
|
|
|
nvram --print-config
|
|
|
|
elif [ -z "$2" ]; then
|
|
|
|
nvram --print-config="$1"
|
|
|
|
else
|
|
|
|
nvram --update-config "$1"="$2"
|
|
|
|
fi
|
|
|
|
exit $?
|