Compare commits
	
		
			38 Commits
		
	
	
		
			openrc-0.8
			...
			openrc-0.9
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					c5b14edda8 | ||
| 
						 | 
					4ee62c7903 | ||
| 
						 | 
					a029dee59b | ||
| 
						 | 
					2330978300 | ||
| 
						 | 
					0c8bea2152 | ||
| 
						 | 
					3688c85163 | ||
| 
						 | 
					370e5c775a | ||
| 
						 | 
					df1f02ac84 | ||
| 
						 | 
					863ef36011 | ||
| 
						 | 
					05c2d68192 | ||
| 
						 | 
					07694255a4 | ||
| 
						 | 
					6fa6f9523f | ||
| 
						 | 
					e3b02abd7a | ||
| 
						 | 
					5541e5ba24 | ||
| 
						 | 
					a74382d9cb | ||
| 
						 | 
					fdaf1c65cd | ||
| 
						 | 
					ef22868f36 | ||
| 
						 | 
					0c7032840b | ||
| 
						 | 
					fe6cd23287 | ||
| 
						 | 
					05e3251467 | ||
| 
						 | 
					9a068c2500 | ||
| 
						 | 
					e8e86b96dc | ||
| 
						 | 
					48dcc55b65 | ||
| 
						 | 
					44dc7db4f8 | ||
| 
						 | 
					003d4ba15b | ||
| 
						 | 
					49f1a8702b | ||
| 
						 | 
					be990b308a | ||
| 
						 | 
					9076baa573 | ||
| 
						 | 
					70a3a3cf39 | ||
| 
						 | 
					d0bc4f20ad | ||
| 
						 | 
					b6766c2544 | ||
| 
						 | 
					c427d3c1fe | ||
| 
						 | 
					24ba795563 | ||
| 
						 | 
					e8413733c1 | ||
| 
						 | 
					f4407ac83d | ||
| 
						 | 
					512c69a106 | ||
| 
						 | 
					2050e67911 | ||
| 
						 | 
					013e7fb9fc | 
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							@@ -1,6 +1,6 @@
 | 
			
		||||
# OpenRC Makefile
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
include Makefile.inc
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +1,3 @@
 | 
			
		||||
NAME=		openrc
 | 
			
		||||
VERSION=	0.8.3
 | 
			
		||||
VERSION=	0.9.0
 | 
			
		||||
PKG=		${NAME}-${VERSION}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										6
									
								
								README
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								README
									
									
									
									
									
								
							@@ -70,9 +70,11 @@ of the system.
 | 
			
		||||
 | 
			
		||||
Reporting Bugs
 | 
			
		||||
--------------
 | 
			
		||||
Bugs should go to the Gentoo Bugzilla:
 | 
			
		||||
Since Gentoo Linux is hosting OpenRC development, Bugs should go to
 | 
			
		||||
the Gentoo Bugzilla:
 | 
			
		||||
	http://bugs.gentoo.org/
 | 
			
		||||
You'll want the "Gentoo Linux" product and the "baselayout" component.
 | 
			
		||||
They should be filed under the "Gentoo Hosted Projects" product and
 | 
			
		||||
the "openrc" component.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
History - by Roy Marples
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										51
									
								
								STYLE
									
									
									
									
									
								
							
							
						
						
									
										51
									
								
								STYLE
									
									
									
									
									
								
							@@ -32,3 +32,54 @@ void foo(int c)
 | 
			
		||||
 | 
			
		||||
	return ret;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
##################
 | 
			
		||||
# COMMIT MESSAGES #
 | 
			
		||||
##################
 | 
			
		||||
 | 
			
		||||
The following is an example of a correctly formatted git commit message
 | 
			
		||||
for this repository. Most of this information came from this blog post
 | 
			
		||||
[1], so I would like to thank the author.
 | 
			
		||||
 | 
			
		||||
### cut here ###
 | 
			
		||||
Capitalized, short (50 chars or less) summary
 | 
			
		||||
 | 
			
		||||
More detailed explanatory text, if necessary.  Wrap it to about 72
 | 
			
		||||
characters or so.  In some contexts, the first line is treated as the
 | 
			
		||||
subject of an email and the rest of the text as the body.  The blank
 | 
			
		||||
line separating the summary from the body is critical (unless you omit
 | 
			
		||||
the body entirely); tools like rebase can get confused if you run the
 | 
			
		||||
two together.
 | 
			
		||||
 | 
			
		||||
Write your commit message in the present tense: "Fix bug" and not "Fixed
 | 
			
		||||
bug."  This convention matches up with commit messages generated by
 | 
			
		||||
commands like git merge and git revert.
 | 
			
		||||
 | 
			
		||||
Further paragraphs come after blank lines.
 | 
			
		||||
 | 
			
		||||
- Bullet points are okay, too
 | 
			
		||||
 | 
			
		||||
- Typically a hyphen or asterisk is used for the bullet, preceded by a
 | 
			
		||||
  single space, with blank lines in between, but conventions vary here
 | 
			
		||||
 | 
			
		||||
- Use a hanging indent
 | 
			
		||||
 | 
			
		||||
Reported-by: User Name <email>
 | 
			
		||||
X-[Distro]-Bug: BugID
 | 
			
		||||
X-[Distro]-Bug-URL: URL for the bug (on the distribution's web site typically)
 | 
			
		||||
### cut here ###
 | 
			
		||||
 | 
			
		||||
If you did not write the code and the patch does not include authorship
 | 
			
		||||
information in a format git can use, please use the --author option of the
 | 
			
		||||
git commit command to make the authorship correct.
 | 
			
		||||
 | 
			
		||||
The Reported-by tag is required if the person who reported the bug is
 | 
			
		||||
different from the author and committer.
 | 
			
		||||
 | 
			
		||||
  The X-[Distro]-Bug/Bug-URL tags are required if this commit is related
 | 
			
		||||
  to a bug reported to us by a specific distribution   of linux or a
 | 
			
		||||
  *BSD. Also, [Distro] should be replaced with the name of the
 | 
			
		||||
  distribution, e.g. X-Gentoo-Bug.
 | 
			
		||||
 | 
			
		||||
[1] http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,2 +1,2 @@
 | 
			
		||||
CONF+=	consolefont dmesg hwclock keymaps modules
 | 
			
		||||
CONF+=	consolefont dmesg hwclock keymaps killprocs modules
 | 
			
		||||
SOS=	Linux
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										3
									
								
								conf.d/killprocs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								conf.d/killprocs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
# If you wish to pass any options to killall5 during shutdown,
 | 
			
		||||
# you should do so here.
 | 
			
		||||
killall5_opts=""
 | 
			
		||||
@@ -1,8 +1,10 @@
 | 
			
		||||
# You can define a list modules for a specific kernel version,
 | 
			
		||||
# a released kernel version, a main kernel version or just a list.
 | 
			
		||||
# The most specific versioned variable will take precedence.
 | 
			
		||||
#modules_2_6_23_gentoo_r5="ieee1394 ohci1394"
 | 
			
		||||
#modules_2_6_23="tun ieee1394"
 | 
			
		||||
#modules_2_6="tun"
 | 
			
		||||
#modules_2="ipv6"
 | 
			
		||||
#modules="ohci1394"
 | 
			
		||||
 | 
			
		||||
# You can give modules a different name when they load - the new name
 | 
			
		||||
@@ -10,10 +12,12 @@
 | 
			
		||||
#modules="dummy:dummy1"
 | 
			
		||||
 | 
			
		||||
# Give the modules some arguments if needed, per version if necessary.
 | 
			
		||||
# Again, the most specific versioned variable will take precedence.
 | 
			
		||||
#module_ieee1394_args="debug"
 | 
			
		||||
#module_ieee1394_args_2_6_23_gentoo_r5="ieee1394 ohci1394"
 | 
			
		||||
#module_ieee1394_args_2_6_23="tun ieee1394"
 | 
			
		||||
#module_ieee1394_args_2_6="tun"
 | 
			
		||||
#module_ieee1394_args_2_6_23_gentoo_r5="debug2"
 | 
			
		||||
#module_ieee1394_args_2_6_23="debug3"
 | 
			
		||||
#module_ieee1394_args_2_6="debug4"
 | 
			
		||||
#module_ieee1394_args_2="debug5"
 | 
			
		||||
 | 
			
		||||
# You should consult your kernel documentation and configuration
 | 
			
		||||
# for a list of modules and their options.
 | 
			
		||||
 
 | 
			
		||||
@@ -47,6 +47,10 @@
 | 
			
		||||
# logging can take place and as such cannot log the sysinit runlevel.
 | 
			
		||||
#rc_logger="YES"
 | 
			
		||||
 | 
			
		||||
# Through rc_log_path you can specify a custom log file.
 | 
			
		||||
# The default value is: /var/log/rc.log
 | 
			
		||||
#rc_log_path="/var/log/rc.log"
 | 
			
		||||
 | 
			
		||||
# By default we filter the environment for our running scripts. To allow other
 | 
			
		||||
# variables through, add them here. Use a * to allow all variables through.
 | 
			
		||||
#rc_env_allow="VAR1 VAR2"
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
# Inform RC that we are in the background and hotplugged
 | 
			
		||||
export IN_BACKGROUND=yes
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@SHELL@
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
# If $TERM is not set then assume default of @TERM@
 | 
			
		||||
# This gives us a nice colour boot :)
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@SHELL@
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
# Handle interrupts
 | 
			
		||||
trap : SIGINT SIGQUIT
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
command=@PKG_PREFIX@/sbin/avahi-dnsconfd
 | 
			
		||||
command_args="$avahi_dnsconfd_args -D"
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
command=@PKG_PREFIX@/sbin/avahi-daemon
 | 
			
		||||
command_args="$avahid_args -D"
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
command=@PKG_PREFIX@/bin/dbus-daemon
 | 
			
		||||
pidfile=@VARBASE@/run/dbus/pid
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
command=/sbin/dhcpcd
 | 
			
		||||
pidfile=/var/run/dhcpcd.pid
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
command=@PKG_PREFIX@/sbin/dnsmasq
 | 
			
		||||
command_args=$dnsmasq_args
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
command=@PKG_PREFIX@/sbin/hald
 | 
			
		||||
pidfile=@VARBASE@/run/hald/hald.pid
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
command=/usr/sbin/named
 | 
			
		||||
command_args=$named_args
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
: ${ntpd_config:=/etc/ntp.conf}
 | 
			
		||||
: ${ntpd_drift:=/var/db/ntpd.drift}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
vpn=${RC_SVCNAME#*.}
 | 
			
		||||
name="OpenVPN"
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
command=@PKG_PREFIX@/sbin/polkitd
 | 
			
		||||
pidfile=@VARBASE@/run/polkitd/polkitd.pid
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
command=/usr/sbin/sshd
 | 
			
		||||
command_args=$sshd_args
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
command=/usr/sbin/wpa_supplicant
 | 
			
		||||
: ${wpa_supplicant_conf:=/etc/wpa_supplicant.conf}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
extra_commands="save"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
depend()
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
description="Sets a font for the consoles."
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
command=/sbin/devd
 | 
			
		||||
command_args=$devd_args
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
description="Creates the dev database"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
description="Mount system critical filesystems in /dev."
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
description="Set the dmesg level for a cleaner boot"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
description="Configures a specific kernel dump device."
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
description="Check and repair filesystems according to /etc/fstab"
 | 
			
		||||
_IFS="
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
extra_commands="reset"
 | 
			
		||||
: ${hostid_file:=/etc/hostid}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
description="Sets the hostname of the machine."
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
extra_commands="save show"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
# This is based on /etc/rc.firewall and /etc/rc.firewall6 from FreeBSD
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
description="Applies a keymap for the consoles."
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
description="Kill all processes so we can unmount disks cleanly."
 | 
			
		||||
 | 
			
		||||
@@ -12,11 +12,11 @@ depend()
 | 
			
		||||
start()
 | 
			
		||||
{
 | 
			
		||||
	ebegin "Terminating remaining processes"
 | 
			
		||||
	killall5 -15
 | 
			
		||||
	killall5 -15 ${killall5_opts}
 | 
			
		||||
	sleep 1
 | 
			
		||||
	eend 0
 | 
			
		||||
	ebegin "Killing remaining processes"
 | 
			
		||||
	killall5 -9
 | 
			
		||||
	killall5 -9 ${killall5_opts}
 | 
			
		||||
	sleep 1
 | 
			
		||||
	eend 0
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
description="Executes user programs in @SYSCONFDIR@/local.d"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
description="Mounts disks and swap according to /etc/fstab."
 | 
			
		||||
 | 
			
		||||
@@ -16,7 +16,7 @@ start()
 | 
			
		||||
{
 | 
			
		||||
	# Mount local filesystems in /etc/fstab.
 | 
			
		||||
	local types="noproc" x= no_netdev=
 | 
			
		||||
	for x in $net_fs_list; do
 | 
			
		||||
	for x in $net_fs_list $extra_net_fs_list; do
 | 
			
		||||
		types="${types},${x}"
 | 
			
		||||
	done
 | 
			
		||||
 | 
			
		||||
@@ -37,16 +37,10 @@ stop()
 | 
			
		||||
	local x= no_umounts_r="/|/dev|/dev/.*|${RC_SVCDIR}"
 | 
			
		||||
	no_umounts_r="${no_umounts_r}|/bin|/sbin|/lib|/libexec"
 | 
			
		||||
	# RC_NO_UMOUNTS is an env var that can be set by plugins
 | 
			
		||||
	OIFS=$IFS SIFS=${IFS-y}
 | 
			
		||||
	IFS=$IFS:
 | 
			
		||||
	local IFS="$IFS:"
 | 
			
		||||
	for x in $no_umounts $RC_NO_UMOUNTS; do
 | 
			
		||||
		no_umounts_r="$no_umounts_r|$x"
 | 
			
		||||
	done
 | 
			
		||||
	if [ "$SIFS" = y ]; then
 | 
			
		||||
		IFS=$OIFS
 | 
			
		||||
	else
 | 
			
		||||
		unset IFS
 | 
			
		||||
	fi
 | 
			
		||||
 | 
			
		||||
	if [ "$RC_UNAME" = Linux ]; then
 | 
			
		||||
		no_umounts_r="$no_umounts_r|/proc|/proc/.*|/run|/sys|/sys/.*"
 | 
			
		||||
@@ -70,7 +64,7 @@ stop()
 | 
			
		||||
	einfo "Unmounting filesystems"
 | 
			
		||||
	eindent
 | 
			
		||||
	local fs=
 | 
			
		||||
	for x in $net_fs_list; do
 | 
			
		||||
	for x in $net_fs_list $extra_net_fs_list; do
 | 
			
		||||
		fs="$fs${fs:+|}$x"
 | 
			
		||||
	done
 | 
			
		||||
	[ -n "$fs" ] && fs="^($fs)$"
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
extra_commands="restore"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
description="Loads a user defined list of kernel modules."
 | 
			
		||||
 | 
			
		||||
@@ -16,18 +16,21 @@ start()
 | 
			
		||||
	# support compiled in ...
 | 
			
		||||
	[ ! -f /proc/modules ] && return 0
 | 
			
		||||
 | 
			
		||||
	local KV=$(uname -r)
 | 
			
		||||
	local KV_MAJOR=${KV%%.*}
 | 
			
		||||
	local x=${KV#*.}
 | 
			
		||||
	local KV_MINOR=${x%%.*}
 | 
			
		||||
	x=${KV#*.*.}
 | 
			
		||||
	local KV_MICRO=${x%%-*}
 | 
			
		||||
	local KV x y kv_variant_list
 | 
			
		||||
	KV=$(uname -r)
 | 
			
		||||
	# full $KV
 | 
			
		||||
	kv_variant_list="${KV}"
 | 
			
		||||
	# remove any KV_EXTRA options to just get the full version
 | 
			
		||||
	x=${KV%%-*}
 | 
			
		||||
	# now slowly strip them
 | 
			
		||||
	while [ -n "$x" ] && [ "$x" != "$y" ]; do
 | 
			
		||||
		kv_variant_list="${kv_variant_list} $x"
 | 
			
		||||
		y=$x
 | 
			
		||||
		x=${x%.*}
 | 
			
		||||
	done
 | 
			
		||||
 | 
			
		||||
	local list= x= xx= y= args= mpargs= cnt=0 a=
 | 
			
		||||
	for x in "$KV" \
 | 
			
		||||
		$KV_MAJOR.$KV_MINOR.$KV_MICRO \
 | 
			
		||||
		$KV_MAJOR.$KV_MINOR \
 | 
			
		||||
	; do
 | 
			
		||||
	for x in $kv_variant_list ; do
 | 
			
		||||
		eval list=\$modules_$(shell_var "$x")
 | 
			
		||||
		[ -n "$list" ] && break
 | 
			
		||||
	done
 | 
			
		||||
@@ -45,10 +48,7 @@ start()
 | 
			
		||||
		fi
 | 
			
		||||
		aa=$(shell_var "$a")
 | 
			
		||||
		xx=$(shell_var "$x")
 | 
			
		||||
		for y in "$KV" \
 | 
			
		||||
			$KV_MAJOR.$KV_MINOR.$KV_MICRO \
 | 
			
		||||
			$KV_MAJOR.$KV_MINOR \
 | 
			
		||||
		; do
 | 
			
		||||
		for y in $kv_variant_list ; do
 | 
			
		||||
			eval args=\$module_${aa}_args_$(shell_var "$y")
 | 
			
		||||
			[ -n "${args}" ] && break
 | 
			
		||||
			eval args=\$module_${xx}_args_$(shell_var "$y")
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
description="Re-mount filesytems read-only for a clean reboot."
 | 
			
		||||
 | 
			
		||||
@@ -22,19 +22,13 @@ start()
 | 
			
		||||
	local m="/dev|/dev/.*|/proc|/proc.*|/sys|/sys/.*|${RC_SVCDIR}" x= fs=
 | 
			
		||||
	m="$m|/bin|/sbin|/lib|/libexec"
 | 
			
		||||
	# RC_NO_UMOUNTS is an env var that can be set by plugins
 | 
			
		||||
	local OIFS=$IFS SIFS=${IFS-y} IFS=$IFS
 | 
			
		||||
	IFS=$IFS:
 | 
			
		||||
	local IFS="$IFS:"
 | 
			
		||||
	for x in $no_umounts $RC_NO_UMOUNTS; do
 | 
			
		||||
		m="$m|$x"
 | 
			
		||||
	done
 | 
			
		||||
	if [ "$SIFS" = y ]; then
 | 
			
		||||
		IFS=$OIFS
 | 
			
		||||
	else
 | 
			
		||||
		unset IFS
 | 
			
		||||
	fi
 | 
			
		||||
	m="^($m)$"
 | 
			
		||||
	fs=
 | 
			
		||||
	for x in $net_fs_list; do
 | 
			
		||||
	for x in $net_fs_list $extra_net_fs_list; do
 | 
			
		||||
		fs="$fs${fs:+|}$x"
 | 
			
		||||
	done
 | 
			
		||||
	[ -n "$fs" ] && fs="^($fs)$"
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
mouse=${RC_SVCNAME##*.}
 | 
			
		||||
if [ -n "$mouse" -a "$mouse" != "moused" ]; then
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
description="Update /etc/mtab to match what the kernel knows about"
 | 
			
		||||
 | 
			
		||||
@@ -12,9 +12,9 @@ depend()
 | 
			
		||||
 | 
			
		||||
start()
 | 
			
		||||
{
 | 
			
		||||
	# /etc/mtab could be a symlink to /proc/mounts
 | 
			
		||||
	if [ ! -w /etc/mtab -a -L /etc/mtab ]; then
 | 
			
		||||
		eeinfo "Skipping mtab update (non writeable symlink)"
 | 
			
		||||
	if [ -l /etc/mtab ]
 | 
			
		||||
	then
 | 
			
		||||
		einfo "Skipping mtab update (mtab is a symbolic link)"
 | 
			
		||||
		return 0
 | 
			
		||||
	fi
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
MODULESDIR="${RC_LIBEXECDIR}/net"
 | 
			
		||||
MODULESLIST="${RC_SVCDIR}/nettree"
 | 
			
		||||
@@ -48,6 +48,9 @@ _get_array()
 | 
			
		||||
	if [ -n "${BASH}" ]; then
 | 
			
		||||
		case "$(declare -p "$1" 2>/dev/null)" in
 | 
			
		||||
			"declare -a "*)
 | 
			
		||||
				ewarn "You are using a bash array for $1."
 | 
			
		||||
				ewarn "This feature will be removed in the future."
 | 
			
		||||
				ewarn "Please see net.example for the correct format for $1."
 | 
			
		||||
				eval "set -- \"\${$1[@]}\""
 | 
			
		||||
				for _a; do
 | 
			
		||||
					printf "%s\n" "${_a}"
 | 
			
		||||
@@ -69,6 +72,9 @@ _flatten_array()
 | 
			
		||||
	if [ -n "${BASH}" ]; then
 | 
			
		||||
		case "$(declare -p "$1" 2>/dev/null)" in
 | 
			
		||||
			"declare -a "*)
 | 
			
		||||
				ewarn "You are using a bash array for $1."
 | 
			
		||||
				ewarn "This feature will be removed in the future."
 | 
			
		||||
				ewarn "Please see net.example for the correct format for $1."
 | 
			
		||||
				eval "set -- \"\${$1[@]}\""
 | 
			
		||||
				for x; do
 | 
			
		||||
					printf "'%s' " "$(printf "$x" | sed "s:':'\\\'':g")"
 | 
			
		||||
@@ -539,7 +545,9 @@ start()
 | 
			
		||||
		[ -z "${config}" ] && break
 | 
			
		||||
 | 
			
		||||
		set -- ${config}
 | 
			
		||||
		ebegin "$1"
 | 
			
		||||
		if [ "$1" != "null" -a "$1" != "noop" ]; then
 | 
			
		||||
			ebegin "$1"
 | 
			
		||||
		fi
 | 
			
		||||
		eindent
 | 
			
		||||
		case "$1" in
 | 
			
		||||
			noop)
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
description="Mounts network shares according to /etc/fstab."
 | 
			
		||||
 | 
			
		||||
@@ -44,7 +44,7 @@ start()
 | 
			
		||||
	[ -x @SYSCONFDIR@/init.d/rpcbind ] && pmap="rpcbind"
 | 
			
		||||
 | 
			
		||||
	local x= fs= rc=
 | 
			
		||||
	for x in $net_fs_list; do
 | 
			
		||||
	for x in $net_fs_list $extra_net_fs_list; do
 | 
			
		||||
		case "$x" in
 | 
			
		||||
			nfs|nfs4)
 | 
			
		||||
			# If the nfsmount script took care of the nfs
 | 
			
		||||
@@ -81,7 +81,7 @@ stop()
 | 
			
		||||
	ebegin "Unmounting network filesystems"
 | 
			
		||||
	. "$RC_LIBEXECDIR"/sh/rc-mount.sh
 | 
			
		||||
 | 
			
		||||
	for x in $net_fs_list; do
 | 
			
		||||
	for x in $net_fs_list $extra_net_fs_list; do
 | 
			
		||||
		fs="$fs${fs:+,}$x"
 | 
			
		||||
	done
 | 
			
		||||
	if [ -n "$fs" ]; then
 | 
			
		||||
@@ -90,7 +90,7 @@ stop()
 | 
			
		||||
 | 
			
		||||
	eindent
 | 
			
		||||
	fs=
 | 
			
		||||
	for x in $net_fs_list; do
 | 
			
		||||
	for x in $net_fs_list $extra_net_fs_list; do
 | 
			
		||||
		fs="$fs${fs:+|}$x"
 | 
			
		||||
	done
 | 
			
		||||
	[ -n "$fs" ] && fs="^($fs)$"
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
# This script was inspired by the equivalent rc.d network from NetBSD.
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
required_files="/etc/newsyslog.conf"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
command=/usr/sbin/nscd
 | 
			
		||||
command_args=$nscd_args
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
description="Turns numlock on for the consoles."
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
name="Packet Filter"
 | 
			
		||||
: ${pf_conf:=${pf_rules:-/etc/pf.conf}}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
command=/usr/sbin/powerd
 | 
			
		||||
command_args=$powerd_args
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
description="Mounts misc filesystems in /proc."
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
command=/usr/sbin/rarpd
 | 
			
		||||
command_args="-f $rarpd_args"
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
depend()
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
description="Mount the root fs read/write"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
command=/usr/sbin/rpcbind
 | 
			
		||||
command_args=$rpcbind_args
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
description="Saves the caches OpenRC uses to non volatile storage"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
description="Saves a kernel dump."
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
# This script was inspired by the equivalent rc.d staticroute from NetBSD.
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
depend()
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
depend()
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
description="Sets the local clock to the mtime of a given file."
 | 
			
		||||
 | 
			
		||||
@@ -16,7 +16,9 @@ depend()
 | 
			
		||||
start()
 | 
			
		||||
{
 | 
			
		||||
	ebegin "Setting the local clock based on last shutdown time"
 | 
			
		||||
	swclock --warn
 | 
			
		||||
	if ! swclock 2> /dev/null; then
 | 
			
		||||
	swclock --warn @PREFIX@/sbin/runscript
 | 
			
		||||
	fi
 | 
			
		||||
	eend $?
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
depend() {
 | 
			
		||||
	need localmount
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
depend()
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
depend()
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
description="Mount the sys filesystem."
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
command=/usr/sbin/syslogd
 | 
			
		||||
command_args=$syslogd_args
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2008-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
description="Configures terminal encoding."
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
depend()
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
: ${urandom_seed:=${URANDOM_SEED:-/var/run/random-seed}}
 | 
			
		||||
description="Initializes the random number generator."
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
#!@PREFIX@/sbin/runscript
 | 
			
		||||
# Copyright (c) 2008-2009 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
depend()
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,4 @@
 | 
			
		||||
.\" Copyright (c) 2007-2008 Roy Marples
 | 
			
		||||
.\" All rights reserved
 | 
			
		||||
.\"
 | 
			
		||||
.\" Redistribution and use in source and binary forms, with or without
 | 
			
		||||
.\" modification, are permitted provided that the following conditions
 | 
			
		||||
@@ -106,8 +105,7 @@ and
 | 
			
		||||
respectively, but only work when
 | 
			
		||||
.Va EINFO_VERBOSE
 | 
			
		||||
is true. You can also make the
 | 
			
		||||
.Fn einfo ,
 | 
			
		||||
.Fn ewarn ,
 | 
			
		||||
.Fn einfo
 | 
			
		||||
and
 | 
			
		||||
.Fn ebegin
 | 
			
		||||
functions silent by setting
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,4 @@
 | 
			
		||||
.\" Copyright (c) 2008-2009 Roy Marples
 | 
			
		||||
.\" All rights reserved
 | 
			
		||||
.\"
 | 
			
		||||
.\" Redistribution and use in source and binary forms, with or without
 | 
			
		||||
.\" modification, are permitted provided that the following conditions
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,4 @@
 | 
			
		||||
.\" Copyright (c) 2007-2009 Roy Marples
 | 
			
		||||
.\" All rights reserved
 | 
			
		||||
.\"
 | 
			
		||||
.\" Redistribution and use in source and binary forms, with or without
 | 
			
		||||
.\" modification, are permitted provided that the following conditions
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,4 @@
 | 
			
		||||
.\" Copyright (c) 2007-2009 Roy Marples
 | 
			
		||||
.\" All rights reserved
 | 
			
		||||
.\"
 | 
			
		||||
.\" Redistribution and use in source and binary forms, with or without
 | 
			
		||||
.\" modification, are permitted provided that the following conditions
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								man/rc.8
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								man/rc.8
									
									
									
									
									
								
							@@ -1,5 +1,4 @@
 | 
			
		||||
.\" Copyright (c) 2007-2009 Roy Marples
 | 
			
		||||
.\" All rights reserved
 | 
			
		||||
.\"
 | 
			
		||||
.\" Redistribution and use in source and binary forms, with or without
 | 
			
		||||
.\" modification, are permitted provided that the following conditions
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,4 @@
 | 
			
		||||
.\" Copyright (c) 2007-2008 Roy Marples
 | 
			
		||||
.\" All rights reserved
 | 
			
		||||
.\"
 | 
			
		||||
.\" Redistribution and use in source and binary forms, with or without
 | 
			
		||||
.\" modification, are permitted provided that the following conditions
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,4 @@
 | 
			
		||||
.\" Copyright (c) 2007-2008 Roy Marples
 | 
			
		||||
.\" All rights reserved
 | 
			
		||||
.\"
 | 
			
		||||
.\" Redistribution and use in source and binary forms, with or without
 | 
			
		||||
.\" modification, are permitted provided that the following conditions
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,4 @@
 | 
			
		||||
.\" Copyright (c) 2007-2008 Roy Marples
 | 
			
		||||
.\" All rights reserved
 | 
			
		||||
.\"
 | 
			
		||||
.\" Redistribution and use in source and binary forms, with or without
 | 
			
		||||
.\" modification, are permitted provided that the following conditions
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,4 @@
 | 
			
		||||
.\" Copyright (c) 2007-2008 Roy Marples
 | 
			
		||||
.\" All rights reserved
 | 
			
		||||
.\"
 | 
			
		||||
.\" Redistribution and use in source and binary forms, with or without
 | 
			
		||||
.\" modification, are permitted provided that the following conditions
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,4 @@
 | 
			
		||||
.\" Copyright (c) 2007-2008 Roy Marples
 | 
			
		||||
.\" All rights reserved
 | 
			
		||||
.\"
 | 
			
		||||
.\" Redistribution and use in source and binary forms, with or without
 | 
			
		||||
.\" modification, are permitted provided that the following conditions
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,4 @@
 | 
			
		||||
.\" Copyright (c) 2007-2008 Roy Marples
 | 
			
		||||
.\" All rights reserved
 | 
			
		||||
.\"
 | 
			
		||||
.\" Redistribution and use in source and binary forms, with or without
 | 
			
		||||
.\" modification, are permitted provided that the following conditions
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,4 @@
 | 
			
		||||
.\" Copyright (c) 2007-2008 Roy Marples
 | 
			
		||||
.\" All rights reserved
 | 
			
		||||
.\"
 | 
			
		||||
.\" Redistribution and use in source and binary forms, with or without
 | 
			
		||||
.\" modification, are permitted provided that the following conditions
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,4 @@
 | 
			
		||||
.\" Copyright (c) 2007-2009 Roy Marples
 | 
			
		||||
.\" All rights reserved
 | 
			
		||||
.\"
 | 
			
		||||
.\" Redistribution and use in source and binary forms, with or without
 | 
			
		||||
.\" modification, are permitted provided that the following conditions
 | 
			
		||||
@@ -463,12 +462,6 @@ show()
 | 
			
		||||
 | 
			
		||||
.Ed
 | 
			
		||||
.Sh BUGS
 | 
			
		||||
Because of the way we load our configuration files and the need to handle
 | 
			
		||||
more than one service directory, you can only use symlinks in service
 | 
			
		||||
directories to other services in the same directory.
 | 
			
		||||
You cannot symlink to a service in a different directory even if it is
 | 
			
		||||
another service directory.
 | 
			
		||||
.Pp
 | 
			
		||||
is_older_than should return 0 on success.
 | 
			
		||||
Instead we return 1 to be compliant with Gentoo baselayout.
 | 
			
		||||
Users are encouraged to use the is_newer_than function which returns correctly.
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,4 @@
 | 
			
		||||
.\" Copyright (c) 2007-2009 Roy Marples
 | 
			
		||||
.\" All rights reserved
 | 
			
		||||
.\"
 | 
			
		||||
.\" Redistribution and use in source and binary forms, with or without
 | 
			
		||||
.\" modification, are permitted provided that the following conditions
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
# rules to enable debugging support
 | 
			
		||||
# Copyright (c) 2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
_RC_DEBUG_SH=	case "${DEBUG}" in "") echo "";; *) echo "-DRC_DEBUG";; esac
 | 
			
		||||
_RC_DEBUG:=	$(shell ${_RC_DEBUG_SH})
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
# rules to make a distribution tarball from a git repo
 | 
			
		||||
# Copyright (c) 2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
GITREF?=	HEAD
 | 
			
		||||
DISTPREFIX?=	${NAME}-${VERSION}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
# rules to make .gitignore files
 | 
			
		||||
# Copyright (c) 2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
IGNOREFILES+=   ${CLEANFILES}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
# based on FreeBSD's bsd.lib.mk
 | 
			
		||||
 | 
			
		||||
# Copyright (c) 2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
SHLIB_NAME=		lib${LIB}.so.${SHLIB_MAJOR}
 | 
			
		||||
SHLIB_LINK=		lib${LIB}.so
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,5 @@
 | 
			
		||||
# Copyright (c) 2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
# Generic definitions
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,5 @@
 | 
			
		||||
# Copyright (c) 2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
# Generic definitions
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,5 @@
 | 
			
		||||
# Copyright (c) 2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
CPPFLAGS+=	-D_BSD_SOURCE -D_XOPEN_SOURCE=600
 | 
			
		||||
LIBDL=		-Wl,-Bdynamic -ldl
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,5 @@
 | 
			
		||||
# Copyright (c) 2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
# Generic definitions
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								mk/os.mk
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								mk/os.mk
									
									
									
									
									
								
							@@ -1,5 +1,5 @@
 | 
			
		||||
# Copyright (c) 2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
# Generic definitions
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
# based on FreeBSD's bsd.prog.mk
 | 
			
		||||
 | 
			
		||||
# Copyright (c) 2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
OBJS+=			${SRCS:.c=.o}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
# Install rules for our scripts
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
include ${MK}/sys.mk
 | 
			
		||||
include ${MK}/os.mk
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
# Recursive rules
 | 
			
		||||
# Adapted from FreeBSDs bsd.subdir.mk
 | 
			
		||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
_+_ ?= +
 | 
			
		||||
ECHODIR ?= echo 
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
# Generic system definitions
 | 
			
		||||
# Copyright (c) 2008 Roy Marples <roy@marples.name>
 | 
			
		||||
# All rights reserved. Released under the 2-clause BSD license.
 | 
			
		||||
# Released under the 2-clause BSD license.
 | 
			
		||||
 | 
			
		||||
AR?=			ar
 | 
			
		||||
CP?=			cp
 | 
			
		||||
 
 | 
			
		||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user