This file is indexed.

/usr/share/doc/gvpe/examples/node-up is in gvpe 2.25-2.

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

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
#!/bin/sh

# Some environment variables will be set (in addition the ones
# set in if-up, too):
#
# DESTNODE=doom		# others nodename
# DESTID=5		# others node id
# DESTIP=188.13.66.8	# others ip
# DESTPORT=407		# others port
# STATE=up/down		# node-up gets UP, node-down script gets DOWN

if [ $STATE = up ]; then
   {
     echo update delete $DESTNODE.lowttl.example.com. a
     echo update delete $DESTNODE-last.lowttl.example.com. a
     echo update add $DESTNODE.lowttl.example.com. 1 in a $DESTIP
     echo update add $DESTNODE-last.lowttl.example.com. 1 in a $DESTIP
     echo
   } | nsupdate -d -k $CONFBASE:marc.example.net.
else
   {
     echo update delete $DESTNODE.lowttl.example.com. a
     echo update delete $DESTNODE-last.lowttl.example.com. a
     echo update add $DESTNODE-last.lowttl.example.com. 1 in a $DESTIP
     echo
   } | nsupdate -d -k $CONFBASE:marc.example.net.
fi