don't mess with the sdram settings on hacked cfe (v5) (fixes #640)
authorFelix Fietkau <nbd@openwrt.org>
Wed, 4 Oct 2006 18:31:31 +0000 (18:31 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 4 Oct 2006 18:31:31 +0000 (18:31 +0000)
SVN-Revision: 4912

openwrt/package/base-files/default/etc/init.d/S05nvram

index 3e0439610affd74a885a97c60ec479204e748bba..932009e373c850ef58c67adef5531aa7f3a59cab 100755 (executable)
@@ -38,6 +38,7 @@ boardnum=$(nvram get boardnum)
 boardflags=$(($(nvram get boardflags)))
 adm_switch="$(( ($boardflags & 0x80) >> 7 ))"
 
+[ -n "$(nvram get vxkilled)" ] && boardtype=0 # don't mess with the ram settings on the hacked cfe
 case "$(( $boardtype ))" in
        "1800") #0x708
                if [ "$adm_switch" = 0 ]; then