diff options
author | Robert Peichaer <rpe@cvs.openbsd.org> | 2017-08-25 18:27:42 +0000 |
---|---|---|
committer | Robert Peichaer <rpe@cvs.openbsd.org> | 2017-08-25 18:27:42 +0000 |
commit | fbf65251249d9beaf571731d4912a7b756abf9f8 (patch) | |
tree | d543c42523eda774d4f67422e9bb68e6942aedfb /libexec | |
parent | f7de78a5607ae4f4882b971bd0503fe410c0b5b5 (diff) |
Fix detection whether /usr/share is on a nfs mounted filesystem.
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/reorder_kernel/reorder_kernel.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/reorder_kernel/reorder_kernel.sh b/libexec/reorder_kernel/reorder_kernel.sh index 62cb8affa1e..9f434107694 100644 --- a/libexec/reorder_kernel/reorder_kernel.sh +++ b/libexec/reorder_kernel/reorder_kernel.sh @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: reorder_kernel.sh,v 1.1 2017/08/21 21:24:11 rpe Exp $ +# $OpenBSD: reorder_kernel.sh,v 1.2 2017/08/25 18:27:41 rpe Exp $ # # Copyright (c) 2017 Robert Peichaer <rpe@openbsd.org> # @@ -20,7 +20,7 @@ set -o errexit # Skip if /usr/share is on a nfs mounted filesystem. DISK_DEV=$(df /usr/share | sed '1d;s/ .*//') -[[ $(mount | grep "^$DISKDEV") == *" type nfs "* ]] && exit 1 +[[ $(mount | grep "^$DISK_DEV") == *" type nfs "* ]] && exit 1 COMPILE_DIR=/usr/share/compile KERNEL=$(sysctl -n kern.osversion) |