From: nbd Date: Sat, 12 Nov 2005 19:15:54 +0000 (+0000) Subject: make linksys fixup script safe for GS v4 X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/1b3a3e65f84d738b7ab47da8f242164ff526c45a?hp=f2cc72d702f51fa1a4d6ac4c557b82b348050ee3 make linksys fixup script safe for GS v4 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2453 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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 b3b4997fc..ea40cd704 100755 --- 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 @@ -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