X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/6dc988729c78347c590675fe4bfdb9bb408fffc7..8aff78b0096b4c2f8ec34fdcf96e55ef8bb9a24a:/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