aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/netmagis-topo/files/toposendd.in
blob: 6dfde1681a6dda3146aa973d3f05bc9399bea521 (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
31
32
33
#! /bin/sh
#
# $FreeBSD$
#

# 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