This file is indexed.

/etc/ppp/ip-down.d/netscript is in netscript-2.4 5.4.11ubuntu1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
[ ! -x /bin/ip ] && exit 0
[ ! -x /sbin/netscript ] && exit 0

qt () { "$@" >/dev/null 2>&1 ; }
vb () { "$@" ; }
source () { . $1 ; }
basename () { echo "${1##*/}"; }

. /etc/netscript/if.conf
. /etc/netscript/network.conf
. /etc/netscript/qos.conf

REV_PPP_CHAIN=''
IF_NODASH=`echo "$PPP_IFACE" | sed -e 's/\-/_/g'`
eval PPP_CHAIN=\"\${"${IF_NODASH}"_PPP_CHAIN:-""}\"
eval PPP_CHAIN_AUTO=\"\${"${IF_NODASH}"_PPP_CHAIN_AUTO:-""}\"
PPP_CHAIN="$PPP_CHAIN_AUTO $PPP_CHAIN" 
for IF in $PPP_CHAIN; do
	REV_PPP_CHAIN="$REV_PPP_CHAIN $IF"
done
unset IF
for IF in $REV_PPP_CHAIN; do
	if_down $IF
done
unset IF

[ ! -x /sbin/tc ] && exit 0
ip_QoSclear $PPP_IFACE