opnsense-src/libexec/rc/rc.d/sysvipc
Edward Tomasz Napierala 82431b7506 rc: remove the 'archdep' script
It was unused since 405c3050f1, which removed iBCS support.

This also moves the 'linux' rc script slightly earlier, which
might help in some setups.  The original version of this patch
moved it even more, before 'mountcritlocal', which would fixe
mount(8) errors due to missing /dev/shm in setups with entries
for /path/to/chroot/dev/shm without the "late" flag; however,
in the end 'kldxref' turned out to depend on 'mountcritlocal'
anyway.

Reported By:	pstef
Reviewed By:	dchagin
Sponsored By:	EPSRC
Differential Revision:	https://reviews.freebsd.org/D29590
2021-04-12 15:18:17 +01:00

26 lines
323 B
Bash
Executable file

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: sysvipc
# REQUIRE: kldxref
# KEYWORD: nojail
. /etc/rc.subr
name="sysvipc"
desc="Load SysV IPC modules"
rcvar="sysvipc_enable"
start_cmd="${name}_start"
stop_cmd=":"
sysvipc_start()
{
load_kld sysvmsg
load_kld sysvsem
load_kld sysvshm
}
load_rc_config $name
run_rc_command "$1"