aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/package/base-files/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-11-12 19:15:54 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-11-12 19:15:54 +0000
commiteabcac18acec5d14c2e471e047d45bd769e53e65 (patch)
treebcfacde2ae9ca6e366526f02c3b5055a4555f91f /target/linux/package/base-files/files
parentb6f288246861b242efd2855e6605c7f95e59e5e1 (diff)
downloadmaster-187ad058-eabcac18acec5d14c2e471e047d45bd769e53e65.tar.gz
master-187ad058-eabcac18acec5d14c2e471e047d45bd769e53e65.tar.bz2
master-187ad058-eabcac18acec5d14c2e471e047d45bd769e53e65.zip
make linksys fixup script safe for GS v4
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2453 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/package/base-files/files')
-rwxr-xr-xtarget/linux/package/base-files/files/brcm-2.4/etc/init.d/S05nvram4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/package/base-files/files/brcm-2.4/etc/init.d/S05nvram b/target/linux/package/base-files/files/brcm-2.4/etc/init.d/S05nvram
index b3b4997fc6..ea40cd704e 100755
--- a/target/linux/package/base-files/files/brcm-2.4/etc/init.d/S05nvram
+++ b/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