File: nvsetenv

package info (click to toggle)
powerpc-utils 1.3.13-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,044 kB
  • sloc: ansic: 18,549; sh: 4,697; perl: 980; makefile: 239
file content (14 lines) | stat: -rw-r--r-- 261 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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 $?