1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-26 13:49:52 +02:00

make linksys fixup script safe for GS v4

git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2453 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2005-11-12 19:15:54 +00:00
parent f8662dd7c6
commit df6f2d9057

View File

@ -35,7 +35,7 @@ adm_switch="$(( ($boardflags & 0x80) >> 7 ))"
case "$(( $boardtype ))" in case "$(( $boardtype ))" in
"$((0x708))") "$((0x708))")
if [ "$adm_switch" = 0 ]; then if [ "$adm_switch" = 0 ]; then
nvram_set sdram_init 0x010b nvram_set sdram_init "$(printf 0x%04x $(( $(nvram get sdram_init) | 0x0100 )))"
[ "$COMMIT" = 1 ] && { [ "$COMMIT" = 1 ] && {
nvram_set sdram_config 0x0062 nvram_set sdram_config 0x0062
nvram_set clkfreq 216 nvram_set clkfreq 216
@ -49,7 +49,7 @@ case "$(( $boardtype ))" in
fi fi
;; ;;
"$((0x467))") "$((0x467))")
nvram_set sdram_init 0x010c nvram_set sdram_init "$(printf 0x%04x $(( $(nvram get sdram_init) | 0x0100 )))"
[ "$COMMIT" = 1 ] && { [ "$COMMIT" = 1 ] && {
nvram_set sdram_config 0x0062 nvram_set sdram_config 0x0062
nvram_set sdram_ncdl 0x0 nvram_set sdram_ncdl 0x0