ip-down.generic
来自「一个vpn源代码」· GENERIC 代码 · 共 25 行
GENERIC
25 行
#!/bin/sh
# ip-down <interface> <myaddr> <daemon-pid> <local> #<remote> <arg>
# Sample of the ip-down script.
# This is called with the same arguments as ip-up after the device was
# closed. It can be used for removing proxyarps, or (like here)
# for logging purposes, etc.
umask 022
PATH=/sbin:/bin:/usr/sbin:/usr/bin
# Logging example
now=`date "+%b %d %T"`
echo "$now - interface $1 is down: $*" >> /var/log/cipe.log
# remove the daemon PID file
rm -f /var/run/cipe/$6.pid /var/run/cipe/$1.pid
route del -net $6 netmask 255.255.255.0
# If the system runs gated, tell it what has happened
#gdc interface
exit 0
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?