X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/3d007394805916ceb2214bfd7e06d8a4899262c5..66492b44df29654379584aac27a0d0c84b26cade:/openwrt/package/base-files/default/etc/functions.sh diff --git a/openwrt/package/base-files/default/etc/functions.sh b/openwrt/package/base-files/default/etc/functions.sh index 60d6231f8..c813e39a6 100755 --- a/openwrt/package/base-files/default/etc/functions.sh +++ b/openwrt/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>&- ||