Some systems are only detectable after /proc is mounted, so re-test if unknown.

This commit is contained in:
Roy Marples
2008-04-06 20:06:07 +00:00
parent 143239e143
commit dcdfdb442f
2 changed files with 11 additions and 0 deletions

View File

@@ -96,6 +96,9 @@ if ${mountproc}; then
fi
unset mountproc
# Re-load RC_SYS if empty now we have /proc mounted
[ -z "${RC_SYS}" ] && export RC_SYS="$(rc --sys)"
# Read off the kernel commandline to see if there's any special settings
# especially check to see if we need to set the CDBOOT environment variable
# Note: /proc MUST be mounted