projects
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
check if /proc/sys/reset exist, from sven-ola
[openwrt.git]
/
openwrt
/
package
/
base-files
/
default
/
etc
/
nvram.sh
1
#!/bin/ash
2
3
# allow env to override nvram
4
nvram
() {
5
if
[
-x
/
usr
/
sbin
/
nvram
];
then
6
case
$1
in
7
get
)
eval
"echo \
${$2:-\$(command nvram get $2)}
"
;;
8
*)
command
nvram $
*;;
9
esac
10
else
11
case
$1
in
12
get
)
eval
"echo \
${$2:-\${DEFAULT_$2}
}"
;;
13
*);;
14
esac
15
fi
16
}
17
This page took
0.042306 seconds
and
5
git commands to generate.