X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/7619fe0848dc5f31d5c4c4cadd2ec067bd5c55d1..93c83b7d16192652859a0fe6fc6175f3b0879c59:/package/base-files/default/etc/functions.sh?ds=sidebyside diff --git a/package/base-files/default/etc/functions.sh b/package/base-files/default/etc/functions.sh index 60d6231f8..c813e39a6 100755 --- a/package/base-files/default/etc/functions.sh +++ b/package/base-files/default/etc/functions.sh @@ -1,16 +1,8 @@ #!/bin/ash +. /etc/nvram.sh alias debug=${DEBUG:-:} -# allow env to override nvram -nvram () { - case $1 in - get) eval "echo \${NVRAM_$2:-\$(command nvram get $2)}";; - *) command nvram $*;; - esac -} -. /etc/nvram.overrides - # valid interface? if_valid () ( ifconfig "$1" >&- 2>&- ||