Try to build mkisofs' first, and only
pkg_add -r' if you cannot.
This commit is contained in:
parent
2c1763d430
commit
074aec36c2
@ -36,11 +36,15 @@ fi
|
||||
type mkisofs 2>&1 | grep " is " >/dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo The mkisofs port is not installed. Trying to get it now.
|
||||
if [ -f /usr/ports/sysutils/mkisofs/Makefile ]; then
|
||||
cd /usr/ports/sysutils/mkisofs && make install && make clean
|
||||
else
|
||||
if ! pkg_add -r mkisofs; then
|
||||
echo "Could not get it via pkg_add - please go install this"
|
||||
echo "from the ports collection and run this script again."
|
||||
exit 2
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
LABEL=$1; shift
|
||||
|
@ -39,11 +39,15 @@ fi
|
||||
type mkisofs 2>&1 | grep " is " >/dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo The mkisofs port is not installed. Trying to get it now.
|
||||
if [ -f /usr/ports/sysutils/mkisofs/Makefile ]; then
|
||||
cd /usr/ports/sysutils/mkisofs && make install && make clean
|
||||
else
|
||||
if ! pkg_add -r mkisofs; then
|
||||
echo "Could not get it via pkg_add - please go install this"
|
||||
echo "from the ports collection and run this script again."
|
||||
exit 2
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
LABEL=$1; shift
|
||||
|
@ -39,11 +39,15 @@ fi
|
||||
type mkisofs 2>&1 | grep " is " >/dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo The mkisofs port is not installed. Trying to get it now.
|
||||
if [ -f /usr/ports/sysutils/mkisofs/Makefile ]; then
|
||||
cd /usr/ports/sysutils/mkisofs && make install && make clean
|
||||
else
|
||||
if ! pkg_add -r mkisofs; then
|
||||
echo "Could not get it via pkg_add - please go install this"
|
||||
echo "from the ports collection and run this script again."
|
||||
exit 2
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
LABEL=$1; shift
|
||||
|
Loading…
Reference in New Issue
Block a user