remove check for existence of wired nic since predictive naming might be active

This commit is contained in:
Aaron Murray 2020-05-19 08:01:41 -05:00
parent 66cab5b6e1
commit fc0420d80a

View File

@ -411,7 +411,7 @@ if [ ${version} -gt 4 ]; then
nic="eth0"
if grep -q "<devicename>${nic}</devicename>" ${OMV_CONFIG_FILE}; then
echo "${nic} already found in database. Skipping..."
elif grep -qw "${nic}" /proc/net/dev; then
else
echo "Adding ${nic} to openmedivault database ..."
jq --null-input --compact-output \
"{uuid: \"${OMV_CONFIGOBJECT_NEW_UUID}\", devicename: \"${nic}\", method: \"dhcp\", method6: \"dhcp\"}" | \