summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions16
1 files changed, 8 insertions, 8 deletions
diff --git a/functions b/functions
index 98c7652..67f0c65 100644
--- a/functions
+++ b/functions
@@ -938,14 +938,14 @@ clear_mtab () {
}
setup_proc () {
- case "$HOST_ARCH" in
- kfreebsd-*)
+ case "$HOST_OS" in
+ kfreebsd*)
umount_on_exit /dev
umount_on_exit /proc
umount "$TARGET/proc" 2>/dev/null || true
in_target mount -t linprocfs proc /proc
;;
- hurd-*)
+ hurd*)
;;
*)
umount_on_exit /dev/pts
@@ -977,10 +977,10 @@ setup_devices () {
return 0
fi
- case "$HOST_ARCH" in
- kfreebsd-*)
+ case "$HOST_OS" in
+ kfreebsd*)
in_target mount -t devfs devfs /dev ;;
- hurd-*)
+ hurd*)
setup_devices_hurd ;;
*)
if [ -e "$DEVICES_TARGZ" ]; then
@@ -1198,8 +1198,8 @@ get_next_predep () {
check_sane_mount () {
mkdir -p "$1"
- case "$HOST_ARCH" in
- kfreebsd-*|hurd-*)
+ case "$HOST_OS" in
+ kfreebsd*|hurd*)
;;
*)
mknod "$1/test-dev-null" c 1 3 || return 1