add first support for DragonFly OS

This commit is contained in:
hexcoder-
2021-01-02 19:59:06 +01:00
parent d687fbdfb4
commit d2a1f05a69
2 changed files with 12 additions and 1 deletions

View File

@ -58,6 +58,11 @@ if [ "$PLATFORM" = "OpenBSD" ] ; then
echo 'System security features cannot be disabled on OpenBSD.'
DONE=1
fi
if [ "$PLATFORM" = "DragonFly" ] ; then
echo
echo 'System security features cannot be disabled on DragonFly.'
DONE=1
fi
if [ "$PLATFORM" = "NetBSD" ] ; then
{
#echo It is recommended to enable unprivileged users to set cpu affinity

View File

@ -44,7 +44,7 @@ echo "[*] Performing basic sanity checks..."
PLT=`uname -s`
if [ ! "$PLT" = "Linux" ] && [ ! "$PLT" = "Darwin" ] && [ ! "$PLT" = "FreeBSD" ] && [ ! "$PLT" = "NetBSD" ] && [ ! "$PLT" = "OpenBSD" ]; then
if [ ! "$PLT" = "Linux" ] && [ ! "$PLT" = "Darwin" ] && [ ! "$PLT" = "FreeBSD" ] && [ ! "$PLT" = "NetBSD" ] && [ ! "$PLT" = "OpenBSD" ] && [ ! "$PLT" = "DragonFly" ]; then
echo "[-] Error: Unicorn instrumentation is unsupported on $PLT."
exit 1
@ -89,6 +89,12 @@ if [ "$PLT" = "FreeBSD" ]; then
TARCMD=gtar
fi
if [ "$PLT" = "DragonFly" ]; then
MAKECMD=gmake
CORES=`sysctl -n hw.ncpu`
TARCMD=tar
fi
if [ "$PLT" = "NetBSD" ] || [ "$PLT" = "OpenBSD" ]; then
MAKECMD=gmake
CORES=`sysctl -n hw.ncpu`