mirror of
https://github.com/nextepc/nextepc-oss.git
synced 2025-10-23 04:52:17 +00:00
modifying tun name
This commit is contained in:
2
debian/nextepc-upf.postinst
vendored
2
debian/nextepc-upf.postinst
vendored
@@ -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
|
||||
|
2
debian/nextepc-upf.postrm
vendored
2
debian/nextepc-upf.postrm
vendored
@@ -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
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user