Commit Graph

27 Commits

Author SHA1 Message Date
Roy Marples
1f4422c72f Remove full license text from shell cripts. 2008-01-11 11:45:59 +00:00
Roy Marples
18adcb1ee8 We may as well use echo here as we recreate mtab fully if successfull. 2008-01-06 23:58:12 +00:00
Roy Marples
afdcf1fa15 udev requires try function and the modules-update program should take care of any 2.4 vs 2.6 kernel issues. Also add vim instructions to a few files. 2007-12-14 20:09:53 +00:00
Roy Marples
9f2403dffa Remove Gentoo copyright from all files that I know I have written 2007-12-14 14:12:38 +00:00
Roy Marples
0490a9290a Remove rc_service_wait as runscript.c should do the waiting. rc_deptree_depend now returns the exact depends as listed. This is so we can support a new 'keywords' directive. We can add whatever here, like 'notimeout' which means that an init script doesn't timeout. This removes the hardcoded check on checkfs and checkroot. 2007-12-05 17:48:07 +00:00
Roy Marples
ac9279cc0d Massive whitespace cleanup 2007-11-28 15:45:03 +00:00
Roy Marples
d81def80b0 Move /etc/conf.d/rc to /etc/rc.conf.
Lowercase all configurable variables, non configurations remain uppercase.
Replace rc_env_bool with rc_yesno.
Split localmount info procfs (Linux) and dumpon, savecore (BSD)
2007-11-23 12:04:11 +00:00
Roy Marples
c2aa772687 issue.devfix is Gentoo specific, as such it belongs in a separate init script. 2007-11-22 11:57:30 +00:00
Roy Marples
39227ede1d relicense as 2-clause BSD, with the kind permission of Gentoo 2007-11-14 15:22:04 +00:00
Roy Marples
8c85fa399f Do an exact match on tmpfs 2007-10-29 13:58:40 +00:00
Roy Marples
e2ba92f773 /etc/mtab is now a true reflection on /proc/mounts. The only exception is that we punt any / on tmpfs entry, #194615. 2007-10-29 13:53:21 +00:00
Roy Marples
0f26607499 Only update mtab if /proc/mounts exists 2007-10-11 15:14:55 +00:00
Roy Marples
5261b5ed3a Fix checkroot and give info about mtab 2007-10-11 15:04:07 +00:00
Roy Marples
64d1dd9da0 If / block device as in /etc/fstab does not exist, use /dev/root if it's available in checkroot, #171593. 2007-10-11 09:49:54 +00:00
Roy Marples
31c6cacb0a Always remount root rw if it's not 2007-10-09 21:10:53 +00:00
Roy Marples
cc3c5ad111 fstabinto now behaves more like mountinfo with respect to --quiet 2007-09-25 22:45:57 +00:00
Roy Marples
15b703c6e4 No need for that sed anymore 2007-09-25 19:18:09 +00:00
Roy Marples
075e80b358 Merge some of reb's OpenBSD fixes in 2007-07-25 20:58:23 +00:00
Roy Marples
cffbaa6c4e Use echo instead of touch - saves on forking 2007-07-13 00:04:20 +00:00
Roy Marples
05201b514b init scripts and their extra options can now have descriptions, #184327. 2007-07-10 19:09:41 +00:00
Roy Marples
8bcc145c98 Always update mtab 2007-05-30 11:26:53 +00:00
Roy Marples
9ced77155b We don't have console, so default to no for fsck 2007-05-02 13:07:00 +00:00
Roy Marples
ea2158fe94 checkroot and checkfs now use more friendly generic options, #116016 2007-04-26 13:07:57 +00:00
Roy Marples
7590e7b258 exec rc-abort 2007-04-20 13:22:27 +00:00
Roy Marples
c52f216450 Added the rc-abort command, #175106 thanks to Daniel Drake. 2007-04-20 13:12:21 +00:00
Roy Marples
876bd89f4b hug getopt_long some more 2007-04-13 15:20:10 +00:00
Roy Marples
5af58b4514 Rewrite the core parts in C. We now provide librc so other programs can
query runlevels, services and state without using bash. We also provide
libeinfo so other programs can easily use our informational functions.

As such, we have dropped the requirement of using bash as the init script
shell. We now use /bin/sh and have strived to make the scripts as portable
as possible. Shells that work are bash and dash. busybox works provided
you disable s-s-d. If you have WIPE_TMP set to yes in conf.d/bootmisc you
should disable find too.
zsh and ksh do not work at this time.

Networking support is currently being re-vamped also as it was heavily bash
array based. As such, a new config format is available like so
config_eth0="1.2.3.4/24 5.6.7.8/16"
or like so
config_eth0="'1.2.3.4 netmask 255.255.255.0' '5.6.7.8 netmask 255.255.0.0'"

We will still support the old bash array format provided that /bin/sh IS
a link it bash.

ChangeLog for baselayout-1 can be found in our SVN repo.
2007-04-05 11:18:42 +00:00