modifying tun name

This commit is contained in:
Brandon Lee
2023-08-10 15:06:24 -06:00
parent 50b42375db
commit 6cb881b358
3 changed files with 3 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ case "$1" in
if test -d "/run/systemd"; then
deb-systemd-invoke restart systemd-networkd
fi
if test -f /etc/sysctl.d/20-nextepc.conf && grep "ogstun" /proc/net/dev > /dev/null; then
if test -f /etc/sysctl.d/20-nextepc.conf && grep "upftun0" /proc/net/dev > /dev/null; then
echo "net.ipv6.conf.upftun0.disable_ipv6=0" > /etc/sysctl.d/20-nextepc.conf
sysctl -p /etc/sysctl.d/20-nextepc.conf
fi

View File

@@ -21,7 +21,7 @@ set -e
case "$1" in
purge)
if grep "ogstun" /proc/net/dev > /dev/null; then
if grep "upftun0" /proc/net/dev > /dev/null; then
ip tuntap del name upftun0 mode tun
fi
rm -f /etc/sysctl.d/20-nextepc.conf

View File

@@ -138,7 +138,7 @@ static int ogs_pfcp_context_prepare(void)
{
self.pfcp_port = OGS_PFCP_UDP_PORT;
self.tun_ifname = "ogstun";
self.tun_ifname = "upftun0";
return OGS_OK;
}