Also try to build setcdboot' first, and only
pkg_add -r' if you cannot.
Submmitted by: dirk
This commit is contained in:
parent
2392d350e6
commit
a950ae8393
@ -55,10 +55,14 @@ mkisofs -r -J -h -V $LABEL -o $NAME $*
|
|||||||
type setcdboot 2>&1 | grep " is " >/dev/null
|
type setcdboot 2>&1 | grep " is " >/dev/null
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo The setcdboot port is not installed. Trying to get it now.
|
echo The setcdboot port is not installed. Trying to get it now.
|
||||||
if ! pkg_add -r setcdboot; then
|
if [ -f /usr/ports/sysutils/setcdboot/Makefile ]; then
|
||||||
echo "Could not get it via pkg_add - please go install this"
|
cd /usr/ports/sysutils/setcdboot && make install && make clean
|
||||||
echo "from the ports collection and run this script again."
|
else
|
||||||
exit 2
|
if ! pkg_add -r setcdboot; 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
|
||||||
fi
|
fi
|
||||||
if [ "x$bootable" != "x" ]; then
|
if [ "x$bootable" != "x" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user