1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
TP-Link_Archer-XR500v/EN7526G_3.18Kernel_SDK/filesystem/usr/etc/ppp/ip-down
2024-07-22 01:58:46 -03:00

22 lines
549 B
Bash
Executable File

#!/bin/sh
# $1 $2 $3 $4 $5 $6
#/etc/ppp/ip-down interface tty speed local-IP local-IP-mask remote-IP
if [ -f /var/run/$1/ip ]; then
rm /var/run/$1/ip
fi
if [ -f /var/run/$1/netmask ]; then
rm /var/run/$1/netmask
fi
if [ -f /var/run/$1/gateway ]; then
rm /var/run/$1/gateway
fi
if [ -f /var/run/$1/dns ]; then
rm /var/run/$1/dns
fi
echo "down" > /var/run/$1/status
#/userfs/bin/tcapi set WanInfo_Message Type Down
#/userfs/bin/tcapi set WanInfo_Message Interface $1
/userfs/bin/tcapi commit WanInfo_Message_$1/4