#!/bin/bash
# Copyright (c) 2000-2021 Synology Inc. All rights reserved.

if ! checkPlatformFunction SYNO_FEA_OOB_MONITOR; then
    SkipThisProject
    return
fi

if [ "linux-5.10.x" != "${SYNO_KERNEL_SOURCE_DIR}" ]; then
    SkipThisProject
    return
fi

# only for rc.network, do not put ip to PATH directories
mkdir -p ${TmpInstDir}/usr/syno/etc/
install -m755 -c ip/ip ${TmpInstDir}/usr/syno/etc/ip

if [ "x$NOSTRIP" != "xNOSTRIP" ]; then
    ${STRIP} ${TmpInstDir}/usr/syno/etc/ip
fi
