change more to less
[openwrt.git] / package / base-files / default / etc / nvram.sh
1 #!/bin/ash
2 # Copyright (C) 2006 OpenWrt.org
3
4
5 # allow env to override nvram
6 nvram () {
7 if [ -x /usr/sbin/nvram ]; then
8 case $1 in
9 get) eval "echo \${$2:-\$(/usr/sbin/nvram get $2)}";;
10 *) /usr/sbin/nvram $*;;
11 esac
12 else
13 case $1 in
14 get) eval "echo \${$2:-\${DEFAULT_$2}}";;
15 *);;
16 esac
17 fi
18 }
19
This page took 0.045601 seconds and 5 git commands to generate.