summaryrefslogtreecommitdiff
path: root/games/tetrinet-x/files/tetrinetx.in
blob: 3d87e76cbe3fb994ac91a2937ae762efa093cf40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

# PROVIDE: tetrinetx
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable tetrinet-x
#
# tetrinetx_enable (bool):	Set it to "YES" to enabl tetrinet-x
#				Default is "NO".

. /etc/rc.subr

name=tetrinetx
rcvar=tetrinetx_enable

load_rc_config $name

: ${tetrinetx_enable:=NO}

command="%%DATADIR%%/tetrix.freebsd"

run_rc_command "$1"