aboutsummaryrefslogtreecommitdiffstats
path: root/misc/compat4x/files/000.compat4x.sh.in
blob: c7d329ade982cebde65977383cc9990fdd5366f1 (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: compat4x
# REQUIRE: ldconfig
#
# Add the following to /etc/rc.conf[.local] to enable this service
#
# compat4x_enable="YES"
#

. %%RC_SUBR%%

name=compat4x
rcvar=`set_rcvar`

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

load_rc_config ${name}
run_rc_command "$1"