diff options
author | sheldonh <sheldonh@FreeBSD.org> | 2000-08-18 08:07:02 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 2000-08-18 08:07:02 +0000 |
commit | 4332565227b534826127dccbdef1200139b1738b (patch) | |
tree | 65ecf2a31d463f2263353b742cda122894a83dd2 /etc/rc | |
parent | 700f78e35497ab0b08d4f4d54d66cfa6335871cc (diff) | |
download | FreeBSD-src-4332565227b534826127dccbdef1200139b1738b.zip FreeBSD-src-4332565227b534826127dccbdef1200139b1738b.tar.gz |
Don't rely on a shell scripts to do the simple job of loading
kernel modules for ibcs2_enable and svr4_enable.
Don't rely on a shell script to do the neglibly less simple
job of loading a kernel module and running one command for
linux_enable.
These shell scripts are going away.
Diffstat (limited to 'etc/rc')
-rw-r--r-- | etc/rc | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -548,7 +548,13 @@ fi # case ${linux_enable} in [Yy][Ee][Ss]) - echo -n ' linux'; linux > /dev/null 2>&1 + echo -n ' linux' + if ! kldstat -v | grep -E 'linux(aout|elf)' > /dev/null; then + kldload linux > /dev/null 2>&1 + fi + if [ -x /compat/linux/sbin/ldconfig ]; then + /compat/linux/sbin/ldconfig + fi ;; esac @@ -556,7 +562,7 @@ esac # case ${svr4_enable} in [Yy][Ee][Ss]) - echo -n ' svr4'; svr4 > /dev/null 2>&1 + echo -n ' svr4'; kldload svr4 > /dev/null 2>&1 ;; esac |