Files
openlan/dist/script/prepare
2022-07-29 23:38:54 +08:00

25 lines
352 B
Bash
Executable File

#!/bin/bash
set -e
systemctl disable firewalld
systemctl stop firewalld
systemctl disable NetworkManager
systemctl stop NetworkManager
systemctl enable network
systemctl start network
cat > /etc/sysconfig/selinux <<EOF
SELINUX=disabled
SELINUXTYPE=targeted
EOF
cat >> /etc/sysctl.conf <<EOF
net.ipv4.ip_forward=1
EOF
sysctl -p /etc/sysctl.conf