From: Felix Fietkau Date: Sat, 12 Nov 2005 19:15:08 +0000 (+0000) Subject: make linksys fixup script safe for GS v4 X-Git-Tag: whiterussian_rc4~37 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f94e72cc334783234c5703f474dad76638891eb2;p=openwrt%2Fsvn-archive%2Fopenwrt.git make linksys fixup script safe for GS v4 SVN-Revision: 2452 --- diff --git a/openwrt/package/base-files/default/etc/init.d/S05nvram b/openwrt/package/base-files/default/etc/init.d/S05nvram index e2611455bb..f5ffc13dfa 100755 --- a/openwrt/package/base-files/default/etc/init.d/S05nvram +++ b/openwrt/package/base-files/default/etc/init.d/S05nvram @@ -35,7 +35,7 @@ adm_switch="$(( ($boardflags & 0x80) >> 7 ))" case "$(( $boardtype ))" in "$((0x708))") if [ "$adm_switch" = 0 ]; then - nvram_set sdram_init 0x010b + nvram_set sdram_init "$(printf 0x%04x $(( $(nvram get sdram_init) | 0x0100 )))" [ "$COMMIT" = 1 ] && { nvram_set sdram_config 0x0062 nvram_set clkfreq 216 @@ -49,7 +49,7 @@ case "$(( $boardtype ))" in fi ;; "$((0x467))") - nvram_set sdram_init 0x010c + nvram_set sdram_init "$(printf 0x%04x $(( $(nvram get sdram_init) | 0x0100 )))" [ "$COMMIT" = 1 ] && { nvram_set sdram_config 0x0062 nvram_set sdram_ncdl 0x0