aboutsummaryrefslogtreecommitdiff
path: root/misc/compat5x/files/000.compat5x.sh.in
blob: 4d6f4da222ebb2544a15434d3d2554f329dd0d6c (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
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: compat5x
# REQUIRE: ldconfig
#
# Add the following to /etc/rc.conf[.local] to enable this service
#
# compat5x_enable="YES"
#

. %%RC_SUBR%%

name=compat5x
rcvar=`set_rcvar`

command=%%LDCONFIG%%
command_args='-m %%PREFIX%%/lib/compat'
%%AMD64%%
%%AMD64%%start_postcmd=${name}_poststart
%%AMD64%%compat5x_poststart () {
%%AMD64%%	%%LDCONFIG%% -32 -m %%TARGET32_DIR%%
%%AMD64%%}

load_rc_config ${name}
run_rc_command "$1"