summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2000-08-18 08:07:02 +0000
committersheldonh <sheldonh@FreeBSD.org>2000-08-18 08:07:02 +0000
commit4332565227b534826127dccbdef1200139b1738b (patch)
tree65ecf2a31d463f2263353b742cda122894a83dd2 /etc/rc
parent700f78e35497ab0b08d4f4d54d66cfa6335871cc (diff)
downloadFreeBSD-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/rc10
1 files changed, 8 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index ca94011..c5f2b92 100644
--- a/etc/rc
+++ b/etc/rc
@@ -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
OpenPOWER on IntegriCloud