projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix failsafe mode on brcm-2.4
[openwrt.git]
/
openwrt
/
target
/
linux
/
package
/
base-files
/
files
/
brcm-2.4
/
etc
/
init.d
/
S05nvram
diff --git
a/openwrt/target/linux/package/base-files/files/brcm-2.4/etc/init.d/S05nvram
b/openwrt/target/linux/package/base-files/files/brcm-2.4/etc/init.d/S05nvram
index
ea40cd7
..
728b284
100755
(executable)
--- a/
openwrt/target/linux/package/base-files/files/brcm-2.4/etc/init.d/S05nvram
+++ b/
openwrt/target/linux/package/base-files/files/brcm-2.4/etc/init.d/S05nvram
@@
-21,9
+21,9
@@
nvram_default() {
}
nvram_set() { # for the linksys fixup part
}
nvram_set() { # for the linksys fixup part
- [ "$(nvram get "$1")" = "$2" ] || {
+ [ "$(nvram get "$1")" = "$2"
-a "$2" != ""
] || {
COMMIT=1
COMMIT=1
- nvram set "$1=$2"
+
/usr/sbin/
nvram set "$1=$2"
}
}
}
}
@@
-35,7
+35,7
@@
adm_switch="$(( ($boardflags & 0x80) >> 7 ))"
case "$(( $boardtype ))" in
"$((0x708))")
if [ "$adm_switch" = 0 ]; then
case "$(( $boardtype ))" in
"$((0x708))")
if [ "$adm_switch" = 0 ]; then
- nvram_set sdram_init "$(printf 0x%04x $(( $(nvram get sdram_init) | 0x0100 )))"
+ nvram_set sdram_init "$(printf 0x%04x $(( $(
/usr/sbin/
nvram get sdram_init) | 0x0100 )))"
[ "$COMMIT" = 1 ] && {
nvram_set sdram_config 0x0062
nvram_set clkfreq 216
[ "$COMMIT" = 1 ] && {
nvram_set sdram_config 0x0062
nvram_set clkfreq 216
@@
-49,7
+49,7
@@
case "$(( $boardtype ))" in
fi
;;
"$((0x467))")
fi
;;
"$((0x467))")
- nvram_set sdram_init "$(printf 0x%04x $(( $(nvram get sdram_init) | 0x0100 )))"
+ nvram_set sdram_init "$(printf 0x%04x $(( $(
/usr/sbin/
nvram get sdram_init) | 0x0100 )))"
[ "$COMMIT" = 1 ] && {
nvram_set sdram_config 0x0062
nvram_set sdram_ncdl 0x0
[ "$COMMIT" = 1 ] && {
nvram_set sdram_config 0x0062
nvram_set sdram_ncdl 0x0
This page took
0.021766 seconds
and
4
git commands to generate.