diff options
author | Roy Marples <roy@marples.name> | 2008-04-06 20:06:07 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-04-06 20:06:07 +0000 |
commit | dcdfdb442f436cd1f1bdfdc46622f5d6f48f8061 (patch) | |
tree | 64ab72215c49e46a01224e272c3da1a4b2ef4868 /sh | |
parent | 143239e143d57c550e949fb3fcc4540de7c8d354 (diff) |
Some systems are only detectable after /proc is mounted, so re-test if unknown.
Diffstat (limited to 'sh')
-rw-r--r-- | sh/init.sh.Linux.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sh/init.sh.Linux.in b/sh/init.sh.Linux.in index 25a3ecb7..5aa5031e 100644 --- a/sh/init.sh.Linux.in +++ b/sh/init.sh.Linux.in @@ -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 |