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.
This commit is contained in:
parent
432b948f76
commit
b53cf64a81
@ -31,8 +31,17 @@ esac
|
|||||||
#
|
#
|
||||||
case ${ibcs2_enable} in
|
case ${ibcs2_enable} in
|
||||||
[Yy][Ee][Ss])
|
[Yy][Ee][Ss])
|
||||||
echo -n ' ibcs2'; ibcs2 > /dev/null 2>&1
|
echo -n ' ibcs2'
|
||||||
;;
|
kldload ibcs2 > /dev/null 2>&1
|
||||||
|
case ${ibcs2_loaders} in
|
||||||
|
[Nn][Oo])
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
for i in ${ibcs2_loaders}; do
|
||||||
|
kldload ibcs2_$i > /dev/null 2>&1
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
esac
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case ${xtend_enable} in
|
case ${xtend_enable} in
|
||||||
|
@ -31,8 +31,17 @@ esac
|
|||||||
#
|
#
|
||||||
case ${ibcs2_enable} in
|
case ${ibcs2_enable} in
|
||||||
[Yy][Ee][Ss])
|
[Yy][Ee][Ss])
|
||||||
echo -n ' ibcs2'; ibcs2 > /dev/null 2>&1
|
echo -n ' ibcs2'
|
||||||
;;
|
kldload ibcs2 > /dev/null 2>&1
|
||||||
|
case ${ibcs2_loaders} in
|
||||||
|
[Nn][Oo])
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
for i in ${ibcs2_loaders}; do
|
||||||
|
kldload ibcs2_$i > /dev/null 2>&1
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
esac
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case ${xtend_enable} in
|
case ${xtend_enable} in
|
||||||
|
10
etc/rc
10
etc/rc
@ -548,7 +548,13 @@ fi
|
|||||||
#
|
#
|
||||||
case ${linux_enable} in
|
case ${linux_enable} in
|
||||||
[Yy][Ee][Ss])
|
[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
|
esac
|
||||||
|
|
||||||
@ -556,7 +562,7 @@ esac
|
|||||||
#
|
#
|
||||||
case ${svr4_enable} in
|
case ${svr4_enable} in
|
||||||
[Yy][Ee][Ss])
|
[Yy][Ee][Ss])
|
||||||
echo -n ' svr4'; svr4 > /dev/null 2>&1
|
echo -n ' svr4'; kldload svr4 > /dev/null 2>&1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user