2005-09-10 18:28:33 +00:00
|
|
|
#!/bin/ash
|
|
|
|
|
|
|
|
# allow env to override nvram
|
|
|
|
nvram () {
|
|
|
|
if [ -x /usr/sbin/nvram ]; then
|
|
|
|
case $1 in
|
2005-11-19 03:17:20 +00:00
|
|
|
get) eval "echo \${$2:-\$(/usr/sbin/nvram get $2)}";;
|
|
|
|
*) /usr/sbin/nvram $*;;
|
2005-09-10 18:28:33 +00:00
|
|
|
esac
|
|
|
|
else
|
|
|
|
case $1 in
|
|
|
|
get) eval "echo \${$2:-\${DEFAULT_$2}}";;
|
|
|
|
*);;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|