aboutsummaryrefslogtreecommitdiff
path: root/lib/40-os
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2024-07-11 21:25:13 -0400
committerCullum Smith <cullum@sacredheartsc.com>2024-07-11 21:25:13 -0400
commit010a4bc91e745ef34175b521830f9c2b644cb0e6 (patch)
tree942b639b1a86e73679fcff312e3bf1562512ff14 /lib/40-os
parent23447b9622b3e39fce4737aa913f830710618adf (diff)
downloadinfrastructure-010a4bc91e745ef34175b521830f9c2b644cb0e6.tar.gz
make boxconf command line more intuitive, fix undef vars
Diffstat (limited to 'lib/40-os')
-rw-r--r--lib/40-os6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/40-os b/lib/40-os
index cedeb86..d2821da 100644
--- a/lib/40-os
+++ b/lib/40-os
@@ -26,7 +26,7 @@ set_loader_conf(){
# Set the FreeBSD bootloader options in /boot/loader.conf.
# The host will be rebooted if the file is changed.
# $1..$N = bootloader options (as "name=value" strings)
- [ "$BOXCONF_OS_FAMILY" = freebsd ] || bug 'set_loader_conf can only be used on FreeBSD'
+ [ "$BOXCONF_OS" = freebsd ] || bug 'set_loader_conf can only be used on FreeBSD'
while [ $# -gt 0 ]; do
grep -qxF "${1%%=*}=\"${1#*=}\"" /boot/loader.conf || BOXCONF_NEED_REBOOT=true
@@ -50,7 +50,7 @@ x
load_kernel_module(){
# Ensure the given kernel modules are loaded.
# $1..$N = bootloader options (as "name=value" strings)
- case $BOXCONF_OS_FAMILY in
+ case $BOXCONF_OS in
freebsd)
while [ $# -gt 0 ]; do
kldstat -qn "$1" || kldload -v "$1"
@@ -58,7 +58,7 @@ load_kernel_module(){
done
;;
*)
- die "load_kernel_module unimplemented for ${BOXCONF_OS_FAMILY}"
+ die "load_kernel_module unimplemented for ${BOXCONF_OS}"
;;
esac
}