1REM >checkro403
2REM $NetBSD: checkro403,v 1.1.1.1 2002/05/09 20:03:57 jdolecek Exp $
3REM
4REM This program checks the build date of RISC OS to see if it is the one
5REM with the bug in OS_Module 7 (RO 4.03 for the Castle Kinetic Card). If
6REM so, it ensures that the memfix module has been loaded
7:
8ON ERROR ERROR EXT 0,"This version of RISC OS 4.03 needs the memfix module. NetBSD will not boot without it": END
9SYS"XOS_ReadSysInfo",9,1 TO build$;flags%
10IF (flags% AND 1)<>0 THEN END    :REM SWI returned with the V flag set
11IF build$="20000507-001" THEN OSCLI"rmensure memfix 0.11 rmload <BtNetBSD$Dir>.memfix"
12