Skip to content

Commit 623b9ca

Browse files
Hutch-45DCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent cbf13b8 commit 623b9ca

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

network-tunings.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ cat > "$SYSCTL_FILE" <<EOF
103103
net.core.netdev_budget=$NETDEV_BUDGET
104104
EOF
105105

106-
sysctl --system >/dev/null
106+
if ! sysctl -p "$SYSCTL_FILE" >/dev/null; then
107+
echo "Warning: failed to apply sysctl settings from $SYSCTL_FILE" >&2
108+
fi
107109

108110
echo
109111
echo "Validating applied settings..."

0 commit comments

Comments
 (0)