source:
freewrt/package/base-files/default/etc/nvram.sh@
475ad56
| Last change on this file since 475ad56 was 475ad56, checked in by , 20 years ago | |
|---|---|
|
|
| File size: 301 bytes | |
| Line | |
|---|---|
| 1 | #!/bin/ash |
| 2 | |
| 3 | # allow env to override nvram |
| 4 | nvram () { |
| 5 | if [ -x /usr/sbin/nvram ]; then |
| 6 | case $1 in |
| 7 | get) eval "echo \${$2:-\$(/usr/sbin/nvram get $2)}";; |
| 8 | *) /usr/sbin/nvram $*;; |
| 9 | esac |
| 10 | else |
| 11 | case $1 in |
| 12 | get) eval "echo \${$2:-\${DEFAULT_$2}}";; |
| 13 | *);; |
| 14 | esac |
| 15 | fi |
| 16 | } |
| 17 |
Note:
See TracBrowser
for help on using the repository browser.
