Test whether pax works; if not, fall back to mknod.

This is intended for use on install media that might not have pax.
This commit is contained in:
apb 2007-03-11 16:08:11 +00:00
parent b76e2d3d5a
commit 1f33f6e66f
1 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh -
# $NetBSD: MAKEDEV.tmpl,v 1.82 2007/03/11 15:52:30 apb Exp $
# $NetBSD: MAKEDEV.tmpl,v 1.83 2007/03/11 16:08:11 apb Exp $
#
# Copyright (c) 2003,2007 The NetBSD Foundation, Inc.
# All rights reserved.
@ -371,7 +371,12 @@ setup()
opts="${opts} -m ${OPTARG}"
;;
p) TOOL_PAX="${OPTARG}"
if ( echo "" | "${TOOL_PAX}" -w -M ); then
do_pax=true
else
warn "Ignored -p option:" \
"${TOOL_PAX} is missing or broken"
fi
;;
s) do_specfile=true
opts="${opts} -s"