mirror of
https://github.com/dsx-ai-factory/nvke.git
synced 2026-12-07 04:35:58 +08:00
12 lines
386 B
Bash
12 lines
386 B
Bash
#!/usr/bin/env bash
|
|
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
set -euo pipefail
|
|
|
|
: "${EXAMPLE_SYSCTL_VALUE:?EXAMPLE_SYSCTL_VALUE is required}"
|
|
|
|
install -d -m 0755 /etc/sysctl.d
|
|
printf 'net.ipv4.ip_forward = %s\n' "${EXAMPLE_SYSCTL_VALUE}" >/etc/sysctl.d/99-nke-example.conf
|
|
sysctl --system
|