node(titan-22): persist Realtek firmware
This commit is contained in:
parent
074f988731
commit
091a787fc7
@ -77,6 +77,13 @@ spec:
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Keep the RTL8153 firmware patch available for subsequent cold boots.
|
||||||
|
if ! dpkg-query -W -f="\${Status}" firmware-realtek 2>/dev/null | grep -q "install ok installed"; then
|
||||||
|
echo "installing firmware-realtek for ${usb_if}"
|
||||||
|
apt-get update
|
||||||
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends firmware-realtek
|
||||||
|
fi
|
||||||
|
|
||||||
if nmcli connection show "Wired connection 1" >/dev/null 2>&1; then
|
if nmcli connection show "Wired connection 1" >/dev/null 2>&1; then
|
||||||
nmcli connection modify "Wired connection 1" connection.autoconnect no || true
|
nmcli connection modify "Wired connection 1" connection.autoconnect no || true
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user