X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/6dc988729c78347c590675fe4bfdb9bb408fffc7..69cdd2998607697bdf28064fe965bbec9c781372:/package/base-files/default/etc/nvram.sh diff --git a/package/base-files/default/etc/nvram.sh b/package/base-files/default/etc/nvram.sh index f1170ac47..ddbd88b52 100644 --- a/package/base-files/default/etc/nvram.sh +++ b/package/base-files/default/etc/nvram.sh @@ -1,11 +1,13 @@ #!/bin/ash +# Copyright (C) 2006 OpenWrt.org + # allow env to override nvram nvram () { if [ -x /usr/sbin/nvram ]; then case $1 in - get) eval "echo \${$2:-\$(command nvram get $2)}";; - *) command nvram $*;; + get) eval "echo \${$2:-\$(/usr/sbin/nvram get $2)}";; + *) /usr/sbin/nvram $*;; esac else case $1 in