You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
335 B
20 lines
335 B
19 years ago
|
#!/bin/ash
|
||
19 years ago
|
# Copyright (C) 2006 OpenWrt.org
|
||
|
|
||
19 years ago
|
|
||
|
# allow env to override nvram
|
||
|
nvram () {
|
||
|
if [ -x /usr/sbin/nvram ]; then
|
||
|
case $1 in
|
||
19 years ago
|
get) eval "echo \${$2:-\$(/usr/sbin/nvram get $2)}";;
|
||
|
*) /usr/sbin/nvram $*;;
|
||
19 years ago
|
esac
|
||
|
else
|
||
|
case $1 in
|
||
|
get) eval "echo \${$2:-\${DEFAULT_$2}}";;
|
||
|
*);;
|
||
|
esac
|
||
|
fi
|
||
|
}
|
||
|
|