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
This commit is contained in:
Edward Tomasz Napierala 2021-04-12 14:38:16 +01:00
parent 7497dd5889
commit 82431b7506
5 changed files with 5 additions and 29 deletions

View file

@ -40,6 +40,9 @@
# xargs -n1 | sort | uniq -d;
# done
# 20210410: remove unused libexec/rc.d/archdep
OLD_FILES+=etc/rc.d/archdep
# 20210408: remove tcp_hostcache.h
OLD_FILES+=usr/include/netinet/tcp_hostcache.h

View file

@ -13,7 +13,6 @@ CONFS= DAEMON \
SERVERS \
addswap \
adjkerntz \
archdep \
bgfsck \
${_blacklistd} \
bridge \

View file

@ -1,26 +0,0 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: archdep
# REQUIRE: mountcritremote
# KEYWORD: nojail
. /etc/rc.subr
name="archdep"
start_cmd="archdep_start"
stop_cmd=":"
archdep_start()
{
local _arch
_arch=`${SYSCTL_N} hw.machine_arch`
case $_arch in
esac
}
load_rc_config $name
run_rc_command "$1"

View file

@ -4,7 +4,7 @@
#
# PROVIDE: linux
# REQUIRE: archdep
# REQUIRE: kldxref
# KEYWORD: nojail
. /etc/rc.subr

View file

@ -4,7 +4,7 @@
#
# PROVIDE: sysvipc
# REQUIRE: archdep
# REQUIRE: kldxref
# KEYWORD: nojail
. /etc/rc.subr