scr/ip-enable.sh
2023-01-15 03:48:41 +00:00

16 lines
280 B
Bash
Executable File

#!/bin/env zsh
# Inference
# IP Address - Enable
# Copyright 2022-2023 Inference
# SPDX-License-Identifier: BSD-3-Clause-Clear
# Version: 0.0.1.1
doas zsh -c\\
"ip link set enp37s0 up &&\\
ip addr add 192.168.1.30/24 dev enp37s0 &&\\
ip route add default via 192.168.1.1"