remove check for existence of wired nic since predictive naming might be active
This commit is contained in:
parent
66cab5b6e1
commit
fc0420d80a
2
install
2
install
@ -411,7 +411,7 @@ if [ ${version} -gt 4 ]; then
|
|||||||
nic="eth0"
|
nic="eth0"
|
||||||
if grep -q "<devicename>${nic}</devicename>" ${OMV_CONFIG_FILE}; then
|
if grep -q "<devicename>${nic}</devicename>" ${OMV_CONFIG_FILE}; then
|
||||||
echo "${nic} already found in database. Skipping..."
|
echo "${nic} already found in database. Skipping..."
|
||||||
elif grep -qw "${nic}" /proc/net/dev; then
|
else
|
||||||
echo "Adding ${nic} to openmedivault database ..."
|
echo "Adding ${nic} to openmedivault database ..."
|
||||||
jq --null-input --compact-output \
|
jq --null-input --compact-output \
|
||||||
"{uuid: \"${OMV_CONFIGOBJECT_NEW_UUID}\", devicename: \"${nic}\", method: \"dhcp\", method6: \"dhcp\"}" | \
|
"{uuid: \"${OMV_CONFIGOBJECT_NEW_UUID}\", devicename: \"${nic}\", method: \"dhcp\", method6: \"dhcp\"}" | \
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user