aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/netmagis-topo/files/toposendd.in
blob: 0e7ce19b2b55646ccc255b75e7f3b44d5af2f80c (plain) (blame)
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
30
#! /bin/sh

# PROVIDE: toposendd
# REQUIRE: LOGIN
# KEYWORD: shutdown

#
# Add the following lines to /etc/rc.conf to enable toposendd:
#
# toposendd_enable="YES"
#
# # Optionnal variables:
# toposendd_flags=""
# toposendd_user="rancid"
#

. /etc/rc.subr

name=toposendd
rcvar=toposendd_enable

load_rc_config $name

: ${toposendd_enable:=NO}
: ${toposendd_user:=rancid}

command_interpreter=%%TCLSH%%
command=%%PREFIX%%/sbin/toposendd

run_rc_command $1