File: //usr/syno/lib/systemd/scripts/SynoInitEth.sh
#! /bin/sh
# Copyright (c) 2000-2018 Synology Inc. All rights reserved.
# This script must be executed after NIC kernel modules are loaded, and before ifconfig was executed
SupportBDE10G=`/bin/get_key_value /etc.defaults/synoinfo.conf support_bde_internal_10g`
NETIF_SEQ_DTS=`/bin/get_key_value /etc.defaults/synoinfo.conf netif_seq_by_dts`
# check Broadwell LAN status, must before synonetseqadj
if [ "yes" = "$SupportBDE10G" ]; then
/usr/syno/bin/synolanstatus
fi
# Adjust NIC sequence
# This action must be done after LAN driver loaded, and before ifconfig was executed.
if [ "yes" = "$NETIF_SEQ_DTS" ]; then
/usr/syno/bin/syno_net_seq
else
/usr/syno/bin/synonetseqadj
fi