ports/misc/compat4x/files/compat4x.sh.in
Doug Barton 519e0dc87b Make the boot scripts REQUIRE: ldconfig so that just in case
the script gets ordered prior to ldconfig, that script won't
blow away the work done by this one.
2005-12-28 00:26:41 +00:00

27 lines
459 B
Bash

#!/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"