opnsense-src/libexec/rc/rc.d
Stefan Eßer 24f44a445c Remove dependency on files in /usr/bin
In order to reduce the pre-requisites of this file, implement the
pattern matching and creation of a temporary test directory without
use of grep respectively mktemp.

The new version makes it possible to provide a writable /tmp in any
case and independently of other local or remote file systems (except /
and /dev) being mounted.

The use of "dd if=/dev/random" has the same dependency on /dev/random
being operational as the previous version that used "mktemp". If this
is found to be an issue on platforms that do not have gathered
sufficient entropy at the time when this scriot is run, I suggest to
replace the "dd" command with "ps lauxww" to get a somewhat random
test directory name.

Approved by:	rgrimes, glebius, cy
MFC after:	4 weeks
Differential Revision:	https://reviews.freebsd.org/D28209
2021-01-19 12:56:23 +01:00
..
accounting Limit access to system accounting files. 2019-07-13 16:07:38 +00:00
addswap Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
adjkerntz Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
apm Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
apmd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
archdep Remove iBCS2, part1: userspace 2018-12-19 21:56:54 +00:00
auditd auditd_stop: wait_for_pids instead of sleeping 2020-02-06 08:32:30 +00:00
auditdistd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
automount Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
automountd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
autounmountd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
bgfsck Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
blacklistd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
bluetooth bluetooth: remove support for bt3c(4) 2021-01-16 23:53:13 +01:00
bootparams Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
bridge Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
bsnmpd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
bthidd Revert r346017 pending compiled-in zfs fix 2019-04-10 07:51:13 +00:00
ccd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
cfumass Revert r346017 pending compiled-in zfs fix 2019-04-10 07:51:13 +00:00
cleanvar Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
cleartmp Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
cron Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
ctld Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
DAEMON Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
ddb Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
defaultroute Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
devd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
devfs Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
devmatch Move the devmatch rc.d script before netif in the boot process. 2020-05-16 18:37:48 +00:00
dhclient Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
dmesg Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
dumpon Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
FILESYSTEMS Add 'tmp' to the list of FILESYSTEMS dependencies. Some scripts that 2021-01-15 12:44:06 -08:00
fsck Add fsck_flags config option 2020-03-18 13:09:47 +00:00
ftp-proxy Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
ftpd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
gbde Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
geli Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
geli2 Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
gptboot Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
growfs fix the article to be correct... 2019-09-16 22:48:40 +00:00
gssd Fix startup of gssd when /usr is a separately mounted local file system. 2020-11-14 01:49:49 +00:00
hastd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
hcsecd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
hostapd Allow the hostapd program to be specified. This allows users to use 2019-06-17 20:11:02 +00:00
hostid Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
hostid_save Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
hostname Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
inetd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
iovctl Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
ip6addrctl Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
ipfilter When booting a system with WITHOUT_IPFILTER the following errors 2020-08-11 23:36:38 +00:00
ipfs Follow-up on 51da4b19be. When booting a system with WITHOUT_IPFILTER 2021-01-11 12:36:54 -08:00
ipfw Fix the ipfw service status output when ipfw.ko isn't loaded 2020-12-18 16:02:28 +00:00
ipfw_netflow Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
ipmon When booting a system with WITHOUT_IPFILTER the following errors 2020-08-11 23:36:38 +00:00
ipnat When booting a system with WITHOUT_IPFILTER the following errors 2020-08-11 23:36:38 +00:00
ippool Load ipfilter, ipnat, and ippool rules, and start ipmon in a vnet jail. 2020-07-23 17:39:45 +00:00
ipropd_master Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
ipropd_slave Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
ipsec Add ipsec.ko to required_modules for rc.d/ipsec script. 2019-05-06 08:30:53 +00:00
iscsictl Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
iscsid Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
jail add ability to set watchdog timeout for a shutdown 2019-10-03 11:23:10 +00:00
kadmind Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
kdc Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
keyserv Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
kfd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
kld Revert r346017 pending compiled-in zfs fix 2019-04-10 07:51:13 +00:00
kldxref Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
kpasswdd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
ldconfig ldconfig: remove i386 aout invocation 2020-06-23 15:36:05 +00:00
linux Make the linux rc script use linrdlnk by default. 2020-07-04 18:01:29 +00:00
local /etc/rc.d/local: Fix typo in description 2019-06-10 13:34:18 +00:00
local_unbound Run unbound-anchor when root.key is empty, not just when it is absent. 2018-11-01 14:24:12 +00:00
localpkg Rename etc/rc.d/abi to etc/rc.d/linux; after moving out the SysV IPC stuff 2019-10-02 11:40:40 +00:00
lockd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
LOGIN Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
lpd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
Makefile pkgbase: Put the last rc files in the rc package 2021-01-04 16:21:13 +01:00
mdconfig Revert r346017 pending compiled-in zfs fix 2019-04-10 07:51:13 +00:00
mdconfig2 Revert r346017 pending compiled-in zfs fix 2019-04-10 07:51:13 +00:00
mixer Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
motd motd: Generate from template to /var/run 2019-07-20 20:56:31 +00:00
mountcritlocal To avoid breakage for those who build/install without ZFS only 2020-08-26 20:30:00 +00:00
mountcritremote Make mountcritremote dependent upon nfscbd. 2020-12-17 00:20:57 +00:00
mountd Add support for the new mountd -R option. 2020-11-06 16:33:42 +00:00
mountlate Remove excess spaces from rc.d scripts 2020-07-13 13:44:54 +00:00
moused Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
msgs Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
natd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
netif Follow-up on 51da4b19be. When booting a system with WITHOUT_IPFILTER 2021-01-11 12:36:54 -08:00
netoptions Run netoptions startup script in vnet jails. 2020-01-08 23:34:50 +00:00
netwait When booting a system with WITHOUT_IPFILTER the following errors 2020-08-11 23:36:38 +00:00
NETWORKING Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
newsyslog Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
nfscbd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
nfsclient Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
nfsd Add support for the new mountd -R option. 2020-11-06 16:33:42 +00:00
nfsuserd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
nisdomain Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
nscd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
ntpd Allow opt-out of automatic ntpd leapfile checking/fetching. 2019-11-25 19:59:53 +00:00
ntpdate Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
opensm Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
os-release Add missing rcvar name for os-release. 2021-01-11 08:36:37 -08:00
othermta Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
pf [pf] /etc/rc.d/pf should REQUIRE routing 2020-10-08 11:45:10 +00:00
pflog Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
pfsync Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
power_profile Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
powerd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
ppp Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
pppoed Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
pwcheck Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
quota Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
random save-entropy(8), rc.d/random: Set nodump flag 2019-05-22 21:47:17 +00:00
rarpd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
rctl Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
resolv Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
rfcomm_pppd_server Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
root Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
route6d Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
routed Make ICMP redirect processing depend on routing daemon. 2020-03-23 15:27:10 +00:00
routing Make ICMP redirect processing depend on routing daemon. 2020-03-23 15:27:10 +00:00
rpcbind Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
rtadvd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
rtsold Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
rwho Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
savecore Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
sdpd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
securelevel When booting a system with WITHOUT_IPFILTER the following errors 2020-08-11 23:36:38 +00:00
sendmail Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
serial Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
SERVERS Rename etc/rc.d/abi to etc/rc.d/linux; after moving out the SysV IPC stuff 2019-10-02 11:40:40 +00:00
sppp Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
sshd sshd: Warn about missing ssh-keygen only when necessary 2020-04-15 14:07:33 +00:00
statd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
static_arp Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
static_ndp Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
stf Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
swap Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
swaplate Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
syscons rc.d/syscons: remove spaces before tab 2020-10-25 18:27:21 +00:00
sysctl Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
syslogd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
sysvipc Move the SysV IPC stuff out of the 'abi' rc script, into a new one: 2019-09-28 09:12:41 +00:00
tmp Remove dependency on files in /usr/bin 2021-01-19 12:56:23 +01:00
ubthidhci Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
ugidfw Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
utx Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
var Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
virecover Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
watchdogd add ability to set watchdog timeout for a shutdown 2019-10-03 11:23:10 +00:00
wpa_supplicant Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
ypbind Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
ypldap Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
yppasswdd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
ypserv Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
ypset Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
ypupdated Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
ypxfrd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
zfs Revert r367291 (KEYWORD: shutdown for rc.d/zfs) 2020-11-20 14:37:07 +00:00
zfsbe loader: zfs should support bootonce an nextboot 2020-09-21 09:01:10 +00:00
zfsd Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
zpool Declare dependency relationship once instead of twice for zpool 2020-09-05 00:45:46 +00:00
zvol Make zpool on GELI work again. 2020-09-04 23:36:43 +00:00