Update build_nat_network.sh

This commit is contained in:
spiritlhl 2023-08-21 22:16:56 +08:00 committed by GitHub
parent 7e6151558b
commit d7f4fbea8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -227,12 +227,12 @@ fi
# iface vmbr2 inet6 static # iface vmbr2 inet6 static
# address ${ipv6_address_without_last_segment}2/${ipv6_prefixlen} # address ${ipv6_address_without_last_segment}2/${ipv6_prefixlen}
# EOF # EOF
# if [ -f "/usr/local/bin/ndpresponder" ]; then # if [ -f "/usr/local/bin/ndpresponder" ]; then
# new_exec_start="ExecStart=/usr/local/bin/ndpresponder -i vmbr0 -n ${ipv6_address_without_last_segment}/${ipv6_prefixlen}" # new_exec_start="ExecStart=/usr/local/bin/ndpresponder -i vmbr0 -n ${ipv6_address_without_last_segment}/${ipv6_prefixlen}"
# file_path="/etc/systemd/system/ndpresponder.service" # file_path="/etc/systemd/system/ndpresponder.service"
# line_number=6 # line_number=6
# sed -i "${line_number}s/.*/${new_exec_start}/" "$file_path" # sed -i "${line_number}s|.*|${new_exec_start}|" "$file_path"
# fi # fi
# fi # fi
# fi # fi
chattr +i /etc/network/interfaces chattr +i /etc/network/interfaces