mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 19:34:43 +01:00
rc: Fix improper use of load_kld
Fix scripts that needlessly used -e when the simpler -m would work, or that used -m when the module and file name are the same, or, in one particularly egregious case, used -m with the wrong name when using nothing at all would have worked just fine. MFC after: 1 week Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D57705
This commit is contained in:
1 parent
86950cf9ff
commit
cfe1962a19
4 files changed
+9
-9
No files matched your search
@@ -35,9 +35,9 @@ bthidd_prestart()
|
||||
if evdev_enabled; then
|
||||
load_kld -m uinput uinput
|
||||
fi
|
||||
load_kld -m kbdmux kbdmux
|
||||
load_kld -m vkbd vkbd
|
||||
load_kld -m ng_btsocket ng_btsocket
|
||||
load_kld kbdmux kbdmux
|
||||
load_kld vkbd vkbd
|
||||
load_kld ng_btsocket
|
||||
return 0
|
||||
}
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ cfumass_start()
|
||||
return "${err}"
|
||||
fi
|
||||
|
||||
load_kld -e cfumass cfumass
|
||||
load_kld -m ctlcfumass cfumass
|
||||
|
||||
# If the template is already switched to Mass Storage, then reset
|
||||
# it to -1 to force the host to reenumerate it; otherwise it might
|
||||
|
||||
@@ -31,14 +31,14 @@ linux_start()
|
||||
|
||||
case `sysctl -n hw.machine_arch` in
|
||||
aarch64)
|
||||
load_kld -e 'linux64elf' linux64
|
||||
load_kld -m linux64elf linux64
|
||||
;;
|
||||
amd64)
|
||||
load_kld -e 'linuxelf' linux
|
||||
load_kld -e 'linux64elf' linux64
|
||||
load_kld -m linuxelf linux
|
||||
load_kld -m linux64elf linux64
|
||||
;;
|
||||
i386)
|
||||
load_kld -e 'linuxelf' linux
|
||||
load_kld -m linuxelf linux
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ mountcritremote_precmd()
|
||||
case "`mount -d -a -t nfs 2> /dev/null`" in
|
||||
*mount_nfs*)
|
||||
# Handle absent nfs client support
|
||||
load_kld -m nfs nfscl || return 1
|
||||
load_kld nfscl || return 1
|
||||
;;
|
||||
esac
|
||||
return 0
|
||||
|
||||
Reference in new issue
Block a user