Compare commits
117 Commits
openrc-0.8
...
openrc-0.9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7644e027fd | ||
|
|
3ad849c5d6 | ||
|
|
f6c27abeb5 | ||
|
|
9175534752 | ||
|
|
c5fb64d61f | ||
|
|
4b63929878 | ||
|
|
29693ecb7a | ||
|
|
930f4021b1 | ||
|
|
bf49e59e3e | ||
|
|
fb485366e6 | ||
|
|
f52dca6984 | ||
|
|
47d305d2af | ||
|
|
95adeb85ba | ||
|
|
0e4d169a40 | ||
|
|
72e31e753d | ||
|
|
645bbf2e0f | ||
|
|
539c4e5872 | ||
|
|
e14e78db16 | ||
|
|
2d180551ef | ||
|
|
a9738a8508 | ||
|
|
5cb985b6cc | ||
|
|
e2f1464f47 | ||
|
|
5df9dc1af5 | ||
|
|
b42ab3b2f4 | ||
|
|
5ed4d084d9 | ||
|
|
9be1a2a67b | ||
|
|
6d5b452ef5 | ||
|
|
7a6dbedf38 | ||
|
|
70c159d47c | ||
|
|
b71f3bd2fd | ||
|
|
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 | ||
|
|
e152199860 | ||
|
|
d4bdd32897 | ||
|
|
8947c00204 | ||
|
|
4eb37f67cf | ||
|
|
7ca74d7636 | ||
|
|
e49da2af91 | ||
|
|
a2c8e5ce50 | ||
|
|
11d8b70d74 | ||
|
|
227f831639 | ||
|
|
98d3b407fe | ||
|
|
fe18c7bb63 | ||
|
|
f8ff4a86a3 | ||
|
|
d59e245bc7 | ||
|
|
74c8667497 | ||
|
|
3d56124ed1 | ||
|
|
bb34ea886a | ||
|
|
fd48bc09ff | ||
|
|
db1daa5857 | ||
|
|
2493a1f32e | ||
|
|
40341fcd7e | ||
|
|
8fcaba9a22 | ||
|
|
04e256e3b8 | ||
|
|
b712a9161f | ||
|
|
8202e7dce4 | ||
|
|
2d197357ef | ||
|
|
b6409feaac | ||
|
|
ede4d1cd60 | ||
|
|
64ef51ab09 | ||
|
|
372bae3213 | ||
|
|
ac56ab7f6d | ||
|
|
ad8f455726 | ||
|
|
de0ded4ed0 | ||
|
|
75722dac4e | ||
|
|
2d14b172fa | ||
|
|
03cd55aa19 | ||
|
|
85827d474c | ||
|
|
8e925368b7 | ||
|
|
15660dbbfc | ||
|
|
07db27d220 | ||
|
|
16f7e90c6c | ||
|
|
c7c278dfd4 | ||
|
|
73c862b792 | ||
|
|
46e67badd2 | ||
|
|
67640d2d97 | ||
|
|
8a45d5e24e | ||
|
|
6e1239795f | ||
|
|
7c1a2defb6 | ||
|
|
1d63e85794 | ||
|
|
25049d3e80 |
15
.gitignore
vendored
15
.gitignore
vendored
@@ -1 +1,16 @@
|
|||||||
*.bz2
|
*.bz2
|
||||||
|
|
||||||
|
*.diff
|
||||||
|
*.patch
|
||||||
|
*.orig
|
||||||
|
*.rej
|
||||||
|
|
||||||
|
core
|
||||||
|
.gdb_history
|
||||||
|
.gdbinit
|
||||||
|
|
||||||
|
.depend
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.So
|
||||||
|
lib*.so
|
||||||
|
|||||||
@@ -5,27 +5,6 @@ removed, it should also be removed from this file.
|
|||||||
|
|
||||||
---------------------------
|
---------------------------
|
||||||
|
|
||||||
What: rc_sys automatic detection code
|
|
||||||
- Functions for removal: rc_sys_v1, rc_sys_v2
|
|
||||||
|
|
||||||
When: 2011/03/01
|
|
||||||
|
|
||||||
Why: The original automatic sub-system detection is flawed in that it cannot
|
|
||||||
safely detect some variables (Using cgroups confused it to think you were
|
|
||||||
using LXC, and Prefix cannot be detect by definition). Also, almost all of
|
|
||||||
the detection requires that /proc is available and readable. During early
|
|
||||||
boot, /proc may not be mounted yet, leading to mis-detection. The readable
|
|
||||||
condition can also fail under some hardened kernels when running as an
|
|
||||||
unprivileged user.
|
|
||||||
|
|
||||||
The new rc_sys_v2 function uses the rc_sys variable from rc.conf. After
|
|
||||||
the removal, the contents of the rc_sys_v2 function will move into the
|
|
||||||
rc_sys function.
|
|
||||||
|
|
||||||
Who: Robin H. Johnson <robbat2@gentoo.org>
|
|
||||||
|
|
||||||
---------------------------
|
|
||||||
|
|
||||||
What: oldnet ADSL rp-pppoe mode
|
What: oldnet ADSL rp-pppoe mode
|
||||||
|
|
||||||
When: undecided
|
When: undecided
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -1,6 +1,6 @@
|
|||||||
# OpenRC Makefile
|
# OpenRC Makefile
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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
|
include Makefile.inc
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
NAME= openrc
|
NAME= openrc
|
||||||
VERSION= 0.8.0
|
VERSION= 0.9.4
|
||||||
PKG= ${NAME}-${VERSION}
|
PKG= ${NAME}-${VERSION}
|
||||||
|
|||||||
6
README
6
README
@@ -70,9 +70,11 @@ of the system.
|
|||||||
|
|
||||||
Reporting Bugs
|
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/
|
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
|
History - by Roy Marples
|
||||||
|
|||||||
51
STYLE
51
STYLE
@@ -32,3 +32,54 @@ void foo(int c)
|
|||||||
|
|
||||||
return ret;
|
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
|
SOS= Linux
|
||||||
|
|||||||
@@ -4,3 +4,7 @@ clean_tmp_dirs="/tmp"
|
|||||||
# Should we wipe the tmp paths completely or just selectively remove known
|
# Should we wipe the tmp paths completely or just selectively remove known
|
||||||
# locks / files / etc... ?
|
# locks / files / etc... ?
|
||||||
wipe_tmp="YES"
|
wipe_tmp="YES"
|
||||||
|
|
||||||
|
# Write the initial dmesg log into /var/log/dmesg after boot
|
||||||
|
# This may be useful if you need the kernel boot log afterwards
|
||||||
|
log_dmesg="YES"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
# you shouldn't specify the trailing ".psf.gz", just the font name below.
|
# you shouldn't specify the trailing ".psf.gz", just the font name below.
|
||||||
# To use the default console font, comment out the CONSOLEFONT setting below.
|
# To use the default console font, comment out the CONSOLEFONT setting below.
|
||||||
# This setting is used by the /etc/init.d/consolefont script (NOTE: if you do
|
# This setting is used by the /etc/init.d/consolefont script (NOTE: if you do
|
||||||
# not want to use it, run "rc-update del consolefont" as root).
|
# not want to use it, run "rc-update del consolefont boot" as root).
|
||||||
consolefont="default8x16"
|
consolefont="default8x16"
|
||||||
|
|
||||||
# consoletranslation is the charset map file to use. Leave commented to use
|
# consoletranslation is the charset map file to use. Leave commented to use
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Use KEYMAP to specify the default console keymap. There is a complete tree
|
# Use keymap to specify the default console keymap. There is a complete tree
|
||||||
# of keymaps in /usr/share/keymaps to choose from.
|
# of keymaps in /usr/share/keymaps to choose from.
|
||||||
keymap="us"
|
keymap="us"
|
||||||
|
|
||||||
|
|||||||
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,
|
# You can define a list modules for a specific kernel version,
|
||||||
# a released kernel version, a main kernel version or just a list.
|
# 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_gentoo_r5="ieee1394 ohci1394"
|
||||||
#modules_2_6_23="tun ieee1394"
|
#modules_2_6_23="tun ieee1394"
|
||||||
#modules_2_6="tun"
|
#modules_2_6="tun"
|
||||||
|
#modules_2="ipv6"
|
||||||
#modules="ohci1394"
|
#modules="ohci1394"
|
||||||
|
|
||||||
# You can give modules a different name when they load - the new name
|
# You can give modules a different name when they load - the new name
|
||||||
@@ -10,10 +12,12 @@
|
|||||||
#modules="dummy:dummy1"
|
#modules="dummy:dummy1"
|
||||||
|
|
||||||
# Give the modules some arguments if needed, per version if necessary.
|
# 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="debug"
|
||||||
#module_ieee1394_args_2_6_23_gentoo_r5="ieee1394 ohci1394"
|
#module_ieee1394_args_2_6_23_gentoo_r5="debug2"
|
||||||
#module_ieee1394_args_2_6_23="tun ieee1394"
|
#module_ieee1394_args_2_6_23="debug3"
|
||||||
#module_ieee1394_args_2_6="tun"
|
#module_ieee1394_args_2_6="debug4"
|
||||||
|
#module_ieee1394_args_2="debug5"
|
||||||
|
|
||||||
# You should consult your kernel documentation and configuration
|
# You should consult your kernel documentation and configuration
|
||||||
# for a list of modules and their options.
|
# for a list of modules and their options.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# This blank configuration will automatically use DHCP for any net.*
|
# This blank configuration will automatically use DHCP for any net.*
|
||||||
# scripts in /etc/init.d. To create a more complete configuration,
|
# scripts in /etc/init.d. To create a more complete configuration,
|
||||||
# please review /usr/share/doc/openrc/net.example and save your configuration
|
# please review /usr/share/doc/openrc*/net.example* and save your configuration
|
||||||
# in /etc/conf.d/net (this file :]!).
|
# in /etc/conf.d/net (this file :]!).
|
||||||
|
|||||||
@@ -67,10 +67,12 @@
|
|||||||
# If a specified module fails (like dhcp - see below), you can specify a
|
# If a specified module fails (like dhcp - see below), you can specify a
|
||||||
# fallback like so
|
# fallback like so
|
||||||
#fallback_eth0="192.168.0.2 netmask 255.255.255.0"
|
#fallback_eth0="192.168.0.2 netmask 255.255.255.0"
|
||||||
#fallback_route_eth0="default via 192.168.0.1"
|
#fallback_routes_eth0="default via 192.168.0.1"
|
||||||
|
|
||||||
# NOTE: fallback entry must match the entry location in config_eth0
|
# NOTE: fallback entry must match the entry location in config_eth0
|
||||||
# As such you can only have one fallback route.
|
# As such you can only have one fallback route.
|
||||||
|
# Also, if you do not set a fallback_routes entry for an interface, the
|
||||||
|
# routes entry will be used if that is set.
|
||||||
|
|
||||||
# Some users may need to alter the MTU - here's how
|
# Some users may need to alter the MTU - here's how
|
||||||
#mtu_eth0="1500"
|
#mtu_eth0="1500"
|
||||||
|
|||||||
@@ -94,10 +94,12 @@
|
|||||||
# If a specified module fails (like dhcp - see below), you can specify a
|
# If a specified module fails (like dhcp - see below), you can specify a
|
||||||
# fallback like so
|
# fallback like so
|
||||||
#fallback_eth0="192.168.0.2/24"
|
#fallback_eth0="192.168.0.2/24"
|
||||||
#fallback_route_eth0="default via 192.168.0.1"
|
#fallback_routes_eth0="default via 192.168.0.1"
|
||||||
|
|
||||||
# NOTE: fallback entry must match the entry location in config_eth0
|
# NOTE: fallback entry must match the entry location in config_eth0
|
||||||
# As such you can only have one fallback route.
|
# As such you can only have one fallback route.
|
||||||
|
# Also, if you do not set a fallback_routes entry for an interface, the
|
||||||
|
# routes entry will be used if that is set.
|
||||||
|
|
||||||
# Some users may need to alter the MTU - here's how
|
# Some users may need to alter the MTU - here's how
|
||||||
#mtu_eth0="1500"
|
#mtu_eth0="1500"
|
||||||
@@ -412,7 +414,7 @@
|
|||||||
# dhclient: emerge net-misc/dhcp
|
# dhclient: emerge net-misc/dhcp
|
||||||
# dhcpcd: emerge net-misc/dhcpcd
|
# dhcpcd: emerge net-misc/dhcpcd
|
||||||
# pump: emerge net-misc/pump
|
# pump: emerge net-misc/pump
|
||||||
# udhcpc: emerge net-misc/udhcp
|
# udhcpc: emerge sys-apps/busybox
|
||||||
|
|
||||||
# If you have more than one DHCP client installed, you need to specify which
|
# If you have more than one DHCP client installed, you need to specify which
|
||||||
# one to use - otherwise we default to dhcpcd if available.
|
# one to use - otherwise we default to dhcpcd if available.
|
||||||
@@ -540,11 +542,21 @@
|
|||||||
|
|
||||||
# You can also configure the VLAN - see for ip man page for more details
|
# You can also configure the VLAN - see for ip man page for more details
|
||||||
# To change the vlan interface name. If not set, the standard "iface.vlanid"
|
# To change the vlan interface name. If not set, the standard "iface.vlanid"
|
||||||
# will be used
|
# will be used. This is the replacement for the old 'vconfig set_name_type'
|
||||||
|
# functionality.
|
||||||
#vlan1_name="vlan1"
|
#vlan1_name="vlan1"
|
||||||
#vlan2_name="eth0.2"
|
#vlan2_name="eth0.2"
|
||||||
|
|
||||||
|
# The following shows the old set_name_type setting and what new option to set:
|
||||||
|
# Using eth9 & VLAN VID 26 as an example.
|
||||||
|
# VLAN_PLUS_VID vlan26_name="vlan0026"
|
||||||
|
# VLAN_PLUS_VID_NO_PAD vlan26_name="vlan26"
|
||||||
|
# DEV_PLUS_VID vlan26_name="eth9.0026"
|
||||||
|
# DEV_PLUS_VID_NO_PAD vlan26_name="eth9.26"
|
||||||
|
|
||||||
# Set the vlan flags
|
# Set the vlan flags
|
||||||
#vlan1_flags="reorder_hdr off gvrp on loose_binding on"
|
#vlan1_flags="reorder_hdr off gvrp on loose_binding on"
|
||||||
|
|
||||||
# Configure in/egress maps
|
# Configure in/egress maps
|
||||||
#vlan1_ingress="2:6 3:5"
|
#vlan1_ingress="2:6 3:5"
|
||||||
#vlan1_egress="1:2"
|
#vlan1_egress="1:2"
|
||||||
@@ -963,10 +975,12 @@
|
|||||||
# and you're done :)
|
# and you're done :)
|
||||||
|
|
||||||
# By default we don't wait for netplug/ifplugd to configure the interface.
|
# By default we don't wait for netplug/ifplugd to configure the interface.
|
||||||
# If you would like it to wait so that other services know that network is up
|
# If you would like it to wait so that other services know that network is
|
||||||
# then you can specify a timeout here.
|
# up then you can specify a timeout here. A value of 0 means wait forever,
|
||||||
|
# and a negative value means never wait.
|
||||||
|
#plug_timeout_eth0="10"
|
||||||
|
# If you want to set it for all interfaces:
|
||||||
#plug_timeout="10"
|
#plug_timeout="10"
|
||||||
# A value of 0 means wait forever.
|
|
||||||
|
|
||||||
# If you don't want to use netplug on a specific interface but you have it
|
# If you don't want to use netplug on a specific interface but you have it
|
||||||
# installed, you can disable it for that interface via the modules statement
|
# installed, you can disable it for that interface via the modules statement
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
##############################################################################
|
||||||
|
# FreeBSD SPECIFIC OPTIONS
|
||||||
|
|
||||||
# This is the subsystem type. Valid options on FreeBSD:
|
# This is the subsystem type. Valid options on FreeBSD:
|
||||||
# "" - nothing special
|
# "" - nothing special
|
||||||
# "jail" - FreeBSD jails
|
# "jail" - FreeBSD jails
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
##############################################################################
|
||||||
|
# LINUX SPECIFIC OPTIONS
|
||||||
|
|
||||||
# This is the subsystem type. Valid options on Linux:
|
# This is the subsystem type. Valid options on Linux:
|
||||||
# "" - nothing special
|
# "" - nothing special
|
||||||
# "lxc" - Linux Containers
|
# "lxc" - Linux Containers
|
||||||
@@ -15,9 +18,6 @@
|
|||||||
# PRESENTLY in, not the virtualization the environment is capable of.
|
# PRESENTLY in, not the virtualization the environment is capable of.
|
||||||
rc_sys="@RC_SYS_DEFAULT@"
|
rc_sys="@RC_SYS_DEFAULT@"
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
# LINUX SPECIFIC OPTIONS
|
|
||||||
|
|
||||||
# This is the number of tty's used in most of the rc-scripts (like
|
# This is the number of tty's used in most of the rc-scripts (like
|
||||||
# consolefont, numlock, etc ...)
|
# consolefont, numlock, etc ...)
|
||||||
rc_tty_number=12
|
rc_tty_number=12
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
##############################################################################
|
||||||
|
# NetBSD SPECIFIC OPTIONS
|
||||||
|
|
||||||
# This is the subsystem type. Valid options on NetBSD:
|
# This is the subsystem type. Valid options on NetBSD:
|
||||||
# "" - nothing special
|
# "" - nothing special
|
||||||
# "prefix" - Prefix
|
# "prefix" - Prefix
|
||||||
|
|||||||
@@ -47,6 +47,10 @@
|
|||||||
# logging can take place and as such cannot log the sysinit runlevel.
|
# logging can take place and as such cannot log the sysinit runlevel.
|
||||||
#rc_logger="YES"
|
#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
|
# 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.
|
# variables through, add them here. Use a * to allow all variables through.
|
||||||
#rc_env_allow="VAR1 VAR2"
|
#rc_env_allow="VAR1 VAR2"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
# 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
|
# Inform RC that we are in the background and hotplugged
|
||||||
export IN_BACKGROUND=yes
|
export IN_BACKGROUND=yes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@SHELL@
|
#!@SHELL@
|
||||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
# 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@
|
# If $TERM is not set then assume default of @TERM@
|
||||||
# This gives us a nice colour boot :)
|
# This gives us a nice colour boot :)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@SHELL@
|
#!@SHELL@
|
||||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
# 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
|
# Handle interrupts
|
||||||
trap : SIGINT SIGQUIT
|
trap : SIGINT SIGQUIT
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
# 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=@PKG_PREFIX@/sbin/avahi-dnsconfd
|
||||||
command_args="$avahi_dnsconfd_args -D"
|
command_args="$avahi_dnsconfd_args -D"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
# 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=@PKG_PREFIX@/sbin/avahi-daemon
|
||||||
command_args="$avahid_args -D"
|
command_args="$avahid_args -D"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
# 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
|
command=@PKG_PREFIX@/bin/dbus-daemon
|
||||||
pidfile=@VARBASE@/run/dbus/pid
|
pidfile=@VARBASE@/run/dbus/pid
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2009 Roy Marples <roy@marples.name>
|
# 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
|
command=/sbin/dhcpcd
|
||||||
pidfile=/var/run/dhcpcd.pid
|
pidfile=/var/run/dhcpcd.pid
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
# 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=@PKG_PREFIX@/sbin/dnsmasq
|
||||||
command_args=$dnsmasq_args
|
command_args=$dnsmasq_args
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
# 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
|
command=@PKG_PREFIX@/sbin/hald
|
||||||
pidfile=@VARBASE@/run/hald/hald.pid
|
pidfile=@VARBASE@/run/hald/hald.pid
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
# 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=/usr/sbin/named
|
||||||
command_args=$named_args
|
command_args=$named_args
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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_config:=/etc/ntp.conf}
|
||||||
: ${ntpd_drift:=/var/db/ntpd.drift}
|
: ${ntpd_drift:=/var/db/ntpd.drift}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
# 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#*.}
|
vpn=${RC_SVCNAME#*.}
|
||||||
name="OpenVPN"
|
name="OpenVPN"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
# 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
|
command=@PKG_PREFIX@/sbin/polkitd
|
||||||
pidfile=@VARBASE@/run/polkitd/polkitd.pid
|
pidfile=@VARBASE@/run/polkitd/polkitd.pid
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
# 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=/usr/sbin/sshd
|
||||||
command_args=$sshd_args
|
command_args=$sshd_args
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2009 Roy Marples <roy@marples.name>
|
# 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
|
command=/usr/sbin/wpa_supplicant
|
||||||
: ${wpa_supplicant_conf:=/etc/wpa_supplicant.conf}
|
: ${wpa_supplicant_conf:=/etc/wpa_supplicant.conf}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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"
|
extra_commands="save"
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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()
|
depend()
|
||||||
{
|
{
|
||||||
need localmount
|
need localmount
|
||||||
before logger
|
before logger
|
||||||
after clock sysctl
|
after clock sysctl
|
||||||
keyword -prefix
|
keyword -prefix -timeout
|
||||||
}
|
}
|
||||||
|
|
||||||
dir_writeable()
|
dir_writeable()
|
||||||
@@ -16,6 +16,7 @@ dir_writeable()
|
|||||||
}
|
}
|
||||||
|
|
||||||
: ${wipe_tmp:=${WIPE_TMP:-yes}}
|
: ${wipe_tmp:=${WIPE_TMP:-yes}}
|
||||||
|
: ${log_dmesg:=${LOG_DMESG:-yes}}
|
||||||
|
|
||||||
cleanup_tmp_dir()
|
cleanup_tmp_dir()
|
||||||
{
|
{
|
||||||
@@ -26,14 +27,15 @@ cleanup_tmp_dir()
|
|||||||
fi
|
fi
|
||||||
dir_writeable "$dir" || return 1
|
dir_writeable "$dir" || return 1
|
||||||
chmod a+rwt "$dir" 2> /dev/null
|
chmod a+rwt "$dir" 2> /dev/null
|
||||||
cd "$dir"
|
cd "$dir" || return 1
|
||||||
if yesno $wipe_tmp; then
|
if yesno $wipe_tmp; then
|
||||||
ebegin "Wiping $dir directory"
|
ebegin "Wiping $dir directory"
|
||||||
local startopts="-x . -depth"
|
|
||||||
[ "$RC_UNAME" = Linux ] && startopts=". -xdev -depth"
|
|
||||||
|
|
||||||
# Faster than find
|
# Faster than raw find
|
||||||
rm -rf -- [^ajlq\.]*
|
if ! rm -rf -- [^ajlq\.]* 2>/dev/null ; then
|
||||||
|
# Blah, too many files
|
||||||
|
find . -maxdepth 1 -name '[^ajlq\.]*' -exec rm -rf -- {} +
|
||||||
|
fi
|
||||||
|
|
||||||
# pam_mktemp creates a .private directory within which
|
# pam_mktemp creates a .private directory within which
|
||||||
# each user gets a private directory with immutable
|
# each user gets a private directory with immutable
|
||||||
@@ -41,27 +43,23 @@ cleanup_tmp_dir()
|
|||||||
# remove it.
|
# remove it.
|
||||||
[ -d /tmp/.private ] && chattr -R -a /tmp/.private 2> /dev/null
|
[ -d /tmp/.private ] && chattr -R -a /tmp/.private 2> /dev/null
|
||||||
|
|
||||||
find $startopts ! -name . \
|
# Prune the paths that are left
|
||||||
! -path "./lost+found" \
|
find . -maxdepth 1 \
|
||||||
! -path "./lost+found/*" \
|
! -name . \
|
||||||
! -path "./quota.user" \
|
! -name lost+found \
|
||||||
! -path "./quota.user/*" \
|
! -name quota.user \
|
||||||
! -path "./aquota.user" \
|
! -name aquota.user \
|
||||||
! -path "./aquota.user/*" \
|
! -name quota.group \
|
||||||
! -path "./quota.group" \
|
! -name aquota.group \
|
||||||
! -path "./quota.group/*" \
|
! -name journal \
|
||||||
! -path "./aquota.group" \
|
-exec rm -rf -- {} +
|
||||||
! -path "./aquota.group/*" \
|
|
||||||
! -path "./journal" \
|
|
||||||
! -path "./journal/*" \
|
|
||||||
-exec rm -rf {} \;
|
|
||||||
eend 0
|
eend 0
|
||||||
else
|
else
|
||||||
ebegin "Cleaning $dir directory"
|
ebegin "Cleaning $dir directory"
|
||||||
rm -rf -- "$dir"/.X*-lock "$dir"/esrv* "$dir"/kio* \
|
rm -rf -- .X*-lock esrv* kio* \
|
||||||
"$dir"/jpsock.* "$dir"/.fam* "$dir"/.esd* \
|
jpsock.* .fam* .esd* \
|
||||||
"$dir"/orbit-* "$dir"/ssh-* "$dir"/ksocket-* \
|
orbit-* ssh-* ksocket-* \
|
||||||
"$dir"/.*-unix
|
.*-unix
|
||||||
eend 0
|
eend 0
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -145,11 +143,13 @@ start()
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if $logw || dir_writeable /var/log; then
|
if yesno $log_dmesg; then
|
||||||
# Create an 'after-boot' dmesg log
|
if $logw || dir_writeable /var/log; then
|
||||||
if [ "$RC_SYS" != VSERVER -a "$RC_SYS" != OPENVZ ]; then
|
# Create an 'after-boot' dmesg log
|
||||||
dmesg > /var/log/dmesg
|
if [ "$RC_SYS" != VSERVER -a "$RC_SYS" != OPENVZ ]; then
|
||||||
chmod 640 /var/log/dmesg
|
dmesg > /var/log/dmesg
|
||||||
|
chmod 640 /var/log/dmesg
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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."
|
description="Sets a font for the consoles."
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
# 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=/sbin/devd
|
||||||
command_args=$devd_args
|
command_args=$devd_args
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2008 Roy Marples <roy@marples.name>
|
# 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"
|
description="Creates the dev database"
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
# 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."
|
description="Mount system critical filesystems in /dev."
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
# 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"
|
description="Set the dmesg level for a cleaner boot"
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
# 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."
|
description="Configures a specific kernel dump device."
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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"
|
description="Check and repair filesystems according to /etc/fstab"
|
||||||
_IFS="
|
_IFS="
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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"
|
extra_commands="reset"
|
||||||
: ${hostid_file:=/etc/hostid}
|
: ${hostid_file:=/etc/hostid}
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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."
|
description="Sets the hostname of the machine."
|
||||||
|
|
||||||
depend() {
|
depend() {
|
||||||
keyword -prefix
|
keyword -prefix -lxc
|
||||||
}
|
}
|
||||||
|
|
||||||
start()
|
start()
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
# 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"
|
extra_commands="save show"
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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
|
# This is based on /etc/rc.firewall and /etc/rc.firewall6 from FreeBSD
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
# 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."
|
description="Applies a keymap for the consoles."
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
# 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."
|
description="Kill all processes so we can unmount disks cleanly."
|
||||||
|
|
||||||
@@ -12,11 +12,11 @@ depend()
|
|||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
ebegin "Terminating remaining processes"
|
ebegin "Terminating remaining processes"
|
||||||
killall5 -15
|
killall5 -15 ${killall5_opts}
|
||||||
sleep 1
|
sleep 1
|
||||||
eend 0
|
eend 0
|
||||||
ebegin "Killing remaining processes"
|
ebegin "Killing remaining processes"
|
||||||
killall5 -9
|
killall5 -9 ${killall5_opts}
|
||||||
sleep 1
|
sleep 1
|
||||||
eend 0
|
eend 0
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
# 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"
|
description="Executes user programs in @SYSCONFDIR@/local.d"
|
||||||
|
|
||||||
@@ -27,7 +27,7 @@ start()
|
|||||||
local_start
|
local_start
|
||||||
fi
|
fi
|
||||||
|
|
||||||
return 0
|
eend 0
|
||||||
}
|
}
|
||||||
|
|
||||||
stop()
|
stop()
|
||||||
@@ -47,5 +47,5 @@ stop()
|
|||||||
local_stop
|
local_stop
|
||||||
fi
|
fi
|
||||||
|
|
||||||
return 0
|
eend 0
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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."
|
description="Mounts disks and swap according to /etc/fstab."
|
||||||
|
|
||||||
@@ -16,7 +16,7 @@ start()
|
|||||||
{
|
{
|
||||||
# Mount local filesystems in /etc/fstab.
|
# Mount local filesystems in /etc/fstab.
|
||||||
local types="noproc" x= no_netdev=
|
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}"
|
types="${types},${x}"
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -34,22 +34,20 @@ start()
|
|||||||
stop()
|
stop()
|
||||||
{
|
{
|
||||||
# We never unmount / or /dev or $RC_SVCDIR
|
# We never unmount / or /dev or $RC_SVCDIR
|
||||||
local x= no_umounts_r="/|/dev|/dev/.*|${RC_SVCDIR}"
|
|
||||||
no_umounts_r="${no_umounts_r}|/bin|/sbin|/lib|/libexec"
|
# Bug 381783
|
||||||
|
local rc_svcdir=$(echo $RC_SVCDIR | sed 's:/lib\(32\|64\)\?/:/lib(32|64)?/:g')
|
||||||
|
|
||||||
|
local x= no_umounts_r="/|/dev|/dev/.*|${rc_svcdir}"
|
||||||
|
no_umounts_r="${no_umounts_r}|/bin|/sbin|/lib(32|64)?|/libexec"
|
||||||
# RC_NO_UMOUNTS is an env var that can be set by plugins
|
# RC_NO_UMOUNTS is an env var that can be set by plugins
|
||||||
OIFS=$IFS SIFS=${IFS-y}
|
local IFS="$IFS:"
|
||||||
IFS=$IFS:
|
|
||||||
for x in $no_umounts $RC_NO_UMOUNTS; do
|
for x in $no_umounts $RC_NO_UMOUNTS; do
|
||||||
no_umounts_r="$no_umounts_r|$x"
|
no_umounts_r="$no_umounts_r|$x"
|
||||||
done
|
done
|
||||||
if [ "$SIFS" = y ]; then
|
|
||||||
IFS=$OIFS
|
|
||||||
else
|
|
||||||
unset IFS
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$RC_UNAME" = Linux ]; then
|
if [ "$RC_UNAME" = Linux ]; then
|
||||||
no_umounts_r="$no_umounts_r|/proc|/proc/.*|/sys|/sys/.*"
|
no_umounts_r="$no_umounts_r|/proc|/proc/.*|/run|/sys|/sys/.*"
|
||||||
fi
|
fi
|
||||||
no_umounts_r="^($no_umounts_r)$"
|
no_umounts_r="^($no_umounts_r)$"
|
||||||
|
|
||||||
@@ -70,12 +68,12 @@ stop()
|
|||||||
einfo "Unmounting filesystems"
|
einfo "Unmounting filesystems"
|
||||||
eindent
|
eindent
|
||||||
local fs=
|
local fs=
|
||||||
for x in $net_fs_list; do
|
for x in $net_fs_list $extra_net_fs_list; do
|
||||||
fs="$fs${fs:+|}$x"
|
fs="$fs${fs:+|}$x"
|
||||||
done
|
done
|
||||||
[ -n "$fs" ] && fs="^($fs)$"
|
[ -n "$fs" ] && fs="^($fs)$"
|
||||||
do_unmount umount --skip-point-regex "$no_umounts_r" \
|
do_unmount umount --skip-point-regex "$no_umounts_r" \
|
||||||
${fs:+--skip-fstype-regex} $fs --nonetdev
|
"${fs:+--skip-fstype-regex}" $fs --nonetdev
|
||||||
eoutdent
|
eoutdent
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
# 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"
|
extra_commands="restore"
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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."
|
description="Loads a user defined list of kernel modules."
|
||||||
|
|
||||||
@@ -16,18 +16,21 @@ start()
|
|||||||
# support compiled in ...
|
# support compiled in ...
|
||||||
[ ! -f /proc/modules ] && return 0
|
[ ! -f /proc/modules ] && return 0
|
||||||
|
|
||||||
local KV=$(uname -r)
|
local KV x y kv_variant_list
|
||||||
local KV_MAJOR=${KV%%.*}
|
KV=$(uname -r)
|
||||||
local x=${KV#*.}
|
# full $KV
|
||||||
local KV_MINOR=${x%%.*}
|
kv_variant_list="${KV}"
|
||||||
x=${KV#*.*.}
|
# remove any KV_EXTRA options to just get the full version
|
||||||
local KV_MICRO=${x%%-*}
|
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=
|
local list= x= xx= y= args= mpargs= cnt=0 a=
|
||||||
for x in "$KV" \
|
for x in $kv_variant_list ; do
|
||||||
$KV_MAJOR.$KV_MINOR.$KV_MICRO \
|
|
||||||
$KV_MAJOR.$KV_MINOR \
|
|
||||||
; do
|
|
||||||
eval list=\$modules_$(shell_var "$x")
|
eval list=\$modules_$(shell_var "$x")
|
||||||
[ -n "$list" ] && break
|
[ -n "$list" ] && break
|
||||||
done
|
done
|
||||||
@@ -45,10 +48,7 @@ start()
|
|||||||
fi
|
fi
|
||||||
aa=$(shell_var "$a")
|
aa=$(shell_var "$a")
|
||||||
xx=$(shell_var "$x")
|
xx=$(shell_var "$x")
|
||||||
for y in "$KV" \
|
for y in $kv_variant_list ; do
|
||||||
$KV_MAJOR.$KV_MINOR.$KV_MICRO \
|
|
||||||
$KV_MAJOR.$KV_MINOR \
|
|
||||||
; do
|
|
||||||
eval args=\$module_${aa}_args_$(shell_var "$y")
|
eval args=\$module_${aa}_args_$(shell_var "$y")
|
||||||
[ -n "${args}" ] && break
|
[ -n "${args}" ] && break
|
||||||
eval args=\$module_${xx}_args_$(shell_var "$y")
|
eval args=\$module_${xx}_args_$(shell_var "$y")
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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."
|
description="Re-mount filesytems read-only for a clean reboot."
|
||||||
|
|
||||||
@@ -19,28 +19,26 @@ start()
|
|||||||
# We need the do_unmount function
|
# We need the do_unmount function
|
||||||
. "$RC_LIBEXECDIR"/sh/rc-mount.sh
|
. "$RC_LIBEXECDIR"/sh/rc-mount.sh
|
||||||
eindent
|
eindent
|
||||||
local m="/dev|/dev/.*|/proc|/proc.*|/sys|/sys/.*|${RC_SVCDIR}" x= fs=
|
|
||||||
m="$m|/bin|/sbin|/lib|/libexec"
|
# Bug 381783
|
||||||
|
local rc_svcdir=$(echo $RC_SVCDIR | sed 's:/lib\(32\|64\)\?/:/lib(32|64)?/:g')
|
||||||
|
|
||||||
|
local m="/dev|/dev/.*|/proc|/proc.*|/sys|/sys/.*|${rc_svcdir}" x= fs=
|
||||||
|
m="$m|/bin|/sbin|/lib(32|64)?|/libexec"
|
||||||
# RC_NO_UMOUNTS is an env var that can be set by plugins
|
# RC_NO_UMOUNTS is an env var that can be set by plugins
|
||||||
local OIFS=$IFS SIFS=${IFS-y} IFS=$IFS
|
local IFS="$IFS:"
|
||||||
IFS=$IFS:
|
|
||||||
for x in $no_umounts $RC_NO_UMOUNTS; do
|
for x in $no_umounts $RC_NO_UMOUNTS; do
|
||||||
m="$m|$x"
|
m="$m|$x"
|
||||||
done
|
done
|
||||||
if [ "$SIFS" = y ]; then
|
|
||||||
IFS=$OIFS
|
|
||||||
else
|
|
||||||
unset IFS
|
|
||||||
fi
|
|
||||||
m="^($m)$"
|
m="^($m)$"
|
||||||
fs=
|
fs=
|
||||||
for x in $net_fs_list; do
|
for x in $net_fs_list $extra_net_fs_list; do
|
||||||
fs="$fs${fs:+|}$x"
|
fs="$fs${fs:+|}$x"
|
||||||
done
|
done
|
||||||
[ -n "$fs" ] && fs="^($fs)$"
|
[ -n "$fs" ] && fs="^($fs)$"
|
||||||
do_unmount "umount -r" \
|
do_unmount "umount -r" \
|
||||||
--skip-point-regex "$m" \
|
--skip-point-regex "$m" \
|
||||||
${fs:+--skip-fstype-regex} $fs --nonetdev
|
"${fs:+--skip-fstype-regex}" $fs --nonetdev
|
||||||
eoutdent
|
eoutdent
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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##*.}
|
mouse=${RC_SVCNAME##*.}
|
||||||
if [ -n "$mouse" -a "$mouse" != "moused" ]; then
|
if [ -n "$mouse" -a "$mouse" != "moused" ]; then
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
# 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"
|
description="Update /etc/mtab to match what the kernel knows about"
|
||||||
|
|
||||||
@@ -12,9 +12,9 @@ depend()
|
|||||||
|
|
||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
# /etc/mtab could be a symlink to /proc/mounts
|
if [ -L /etc/mtab ]
|
||||||
if [ ! -w /etc/mtab -a -L /etc/mtab ]; then
|
then
|
||||||
eeinfo "Skipping mtab update (non writeable symlink)"
|
einfo "Skipping mtab update (mtab is a symbolic link)"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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"
|
MODULESDIR="${RC_LIBEXECDIR}/net"
|
||||||
MODULESLIST="${RC_SVCDIR}/nettree"
|
MODULESLIST="${RC_SVCDIR}/nettree"
|
||||||
@@ -42,12 +42,25 @@ depend()
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Support bash arrays - sigh
|
# Support bash arrays - sigh
|
||||||
|
_array_helper()
|
||||||
|
{
|
||||||
|
local _a=
|
||||||
|
|
||||||
|
eval _a=\$$1
|
||||||
|
_a=$(echo "${_a}" | sed -e 's:^[[:space:]]*::' -e 's:[[:space:]]*$::' -e '/^$/d' -e 's:[[:space:]]\{1,\}: :g')
|
||||||
|
|
||||||
|
[ -n "${_a}" ] && printf "%s\n" "${_a}"
|
||||||
|
}
|
||||||
|
|
||||||
_get_array()
|
_get_array()
|
||||||
{
|
{
|
||||||
local _a=
|
local _a=
|
||||||
if [ -n "${BASH}" ]; then
|
if [ -n "${BASH}" ]; then
|
||||||
case "$(declare -p "$1" 2>/dev/null)" in
|
case "$(declare -p "$1" 2>/dev/null)" in
|
||||||
"declare -a "*)
|
"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[@]}\""
|
eval "set -- \"\${$1[@]}\""
|
||||||
for _a; do
|
for _a; do
|
||||||
printf "%s\n" "${_a}"
|
printf "%s\n" "${_a}"
|
||||||
@@ -57,10 +70,7 @@ _get_array()
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
eval _a=\$$1
|
_array_helper $1
|
||||||
printf "%s" "${_a}"
|
|
||||||
printf "\n"
|
|
||||||
[ -n "${_a}" ]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Flatten bash arrays to simple strings
|
# Flatten bash arrays to simple strings
|
||||||
@@ -69,6 +79,9 @@ _flatten_array()
|
|||||||
if [ -n "${BASH}" ]; then
|
if [ -n "${BASH}" ]; then
|
||||||
case "$(declare -p "$1" 2>/dev/null)" in
|
case "$(declare -p "$1" 2>/dev/null)" in
|
||||||
"declare -a "*)
|
"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[@]}\""
|
eval "set -- \"\${$1[@]}\""
|
||||||
for x; do
|
for x; do
|
||||||
printf "'%s' " "$(printf "$x" | sed "s:':'\\\'':g")"
|
printf "'%s' " "$(printf "$x" | sed "s:':'\\\'':g")"
|
||||||
@@ -78,10 +91,7 @@ _flatten_array()
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
eval _a=\$$1
|
_array_helper $1
|
||||||
printf "%s" "${_a}"
|
|
||||||
printf "\n"
|
|
||||||
[ -n "${_a}" ]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_wait_for_carrier()
|
_wait_for_carrier()
|
||||||
@@ -476,7 +486,7 @@ interface_down()
|
|||||||
|
|
||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
local IFACE=${RC_SVCNAME#*.} oneworked=false module=
|
local IFACE=${RC_SVCNAME#*.} oneworked=false fallback=false module=
|
||||||
local IFVAR=$(shell_var "${IFACE}") cmd= our_metric=
|
local IFVAR=$(shell_var "${IFACE}") cmd= our_metric=
|
||||||
local metric=0
|
local metric=0
|
||||||
|
|
||||||
@@ -539,7 +549,9 @@ start()
|
|||||||
[ -z "${config}" ] && break
|
[ -z "${config}" ] && break
|
||||||
|
|
||||||
set -- ${config}
|
set -- ${config}
|
||||||
ebegin "$1"
|
if [ "$1" != "null" -a "$1" != "noop" ]; then
|
||||||
|
ebegin "$1"
|
||||||
|
fi
|
||||||
eindent
|
eindent
|
||||||
case "$1" in
|
case "$1" in
|
||||||
noop)
|
noop)
|
||||||
@@ -563,6 +575,7 @@ start()
|
|||||||
else
|
else
|
||||||
eval config=\$fallback_${config_index}
|
eval config=\$fallback_${config_index}
|
||||||
if [ -n "${config}" ]; then
|
if [ -n "${config}" ]; then
|
||||||
|
fallback=true
|
||||||
eoutdent
|
eoutdent
|
||||||
ewarn "Trying fallback configuration ${config}"
|
ewarn "Trying fallback configuration ${config}"
|
||||||
eindent
|
eindent
|
||||||
@@ -585,8 +598,13 @@ start()
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local hidefirstroute=false first=true
|
local hidefirstroute=false first=true routes=
|
||||||
local routes="$(_get_array "routes_${IFVAR}")"
|
if ${fallback}; then
|
||||||
|
routes="$(_get_array "fallback_routes_${IFVAR}")"
|
||||||
|
fi
|
||||||
|
if [ -z "${routes}" ]; then
|
||||||
|
routes="$(_get_array "routes_${IFVAR}")"
|
||||||
|
fi
|
||||||
if [ "${IFACE}" = "lo" -o "${IFACE}" = "lo0" ]; then
|
if [ "${IFACE}" = "lo" -o "${IFACE}" = "lo0" ]; then
|
||||||
if [ "${config_0}" != "null" ]; then
|
if [ "${config_0}" != "null" ]; then
|
||||||
routes="127.0.0.0/8 via 127.0.0.1
|
routes="127.0.0.0/8 via 127.0.0.1
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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."
|
description="Mounts network shares according to /etc/fstab."
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@ start()
|
|||||||
[ -x @SYSCONFDIR@/init.d/rpcbind ] && pmap="rpcbind"
|
[ -x @SYSCONFDIR@/init.d/rpcbind ] && pmap="rpcbind"
|
||||||
|
|
||||||
local x= fs= rc=
|
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
|
case "$x" in
|
||||||
nfs|nfs4)
|
nfs|nfs4)
|
||||||
# If the nfsmount script took care of the nfs
|
# If the nfsmount script took care of the nfs
|
||||||
@@ -81,7 +81,7 @@ stop()
|
|||||||
ebegin "Unmounting network filesystems"
|
ebegin "Unmounting network filesystems"
|
||||||
. "$RC_LIBEXECDIR"/sh/rc-mount.sh
|
. "$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"
|
fs="$fs${fs:+,}$x"
|
||||||
done
|
done
|
||||||
if [ -n "$fs" ]; then
|
if [ -n "$fs" ]; then
|
||||||
@@ -90,7 +90,7 @@ stop()
|
|||||||
|
|
||||||
eindent
|
eindent
|
||||||
fs=
|
fs=
|
||||||
for x in $net_fs_list; do
|
for x in $net_fs_list $extra_net_fs_list; do
|
||||||
fs="$fs${fs:+|}$x"
|
fs="$fs${fs:+|}$x"
|
||||||
done
|
done
|
||||||
[ -n "$fs" ] && fs="^($fs)$"
|
[ -n "$fs" ] && fs="^($fs)$"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2009 Roy Marples <roy@marples.name>
|
# 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.
|
# This script was inspired by the equivalent rc.d network from NetBSD.
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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"
|
required_files="/etc/newsyslog.conf"
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
# 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=/usr/sbin/nscd
|
||||||
command_args=$nscd_args
|
command_args=$nscd_args
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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."
|
description="Turns numlock on for the consoles."
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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"
|
name="Packet Filter"
|
||||||
: ${pf_conf:=${pf_rules:-/etc/pf.conf}}
|
: ${pf_conf:=${pf_rules:-/etc/pf.conf}}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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=/usr/sbin/powerd
|
||||||
command_args=$powerd_args
|
command_args=$powerd_args
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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."
|
description="Mounts misc filesystems in /proc."
|
||||||
|
|
||||||
@@ -14,7 +14,7 @@ depend()
|
|||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
# Make sure we insert usbcore if it's a module
|
# Make sure we insert usbcore if it's a module
|
||||||
if [ -f /proc/modules -a ! -d /proc/bus/usb ]; then
|
if [ -f /proc/modules -a ! -d /sys/module/usbcore -a ! -d /proc/bus/usb ]; then
|
||||||
modprobe -q usbcore
|
modprobe -q usbcore
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -37,24 +37,24 @@ start()
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Setup Kernel Support for the NFS daemon status
|
|
||||||
if [ -d /proc/fs/nfsd ] && ! mountinfo -q /proc/fs/nfsd; then
|
|
||||||
if grep -qs nfsd /proc/filesystems; then
|
|
||||||
ebegin "Mounting NFS filesystem"
|
|
||||||
mount -t nfsd -o nodev,noexec,nosuid \
|
|
||||||
nfsd /proc/fs/nfsd
|
|
||||||
eend $?
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Setup Kernel Support for miscellaneous Binary Formats
|
# Setup Kernel Support for miscellaneous Binary Formats
|
||||||
if [ -d /proc/sys/fs/binfmt_misc ] \
|
if [ -d /proc/sys/fs/binfmt_misc -a ! -e /proc/sys/fs/binfmt_misc/register ]; then
|
||||||
&& ! mountinfo -q /proc/sys/fs/binfmt_misc; then
|
|
||||||
if grep -qs binfmt_misc /proc/filesystems; then
|
if grep -qs binfmt_misc /proc/filesystems; then
|
||||||
ebegin "Mounting misc binary format filesystem"
|
ebegin "Mounting misc binary format filesystem"
|
||||||
mount -t binfmt_misc -o nodev,noexec,nosuid \
|
mount -t binfmt_misc -o nodev,noexec,nosuid \
|
||||||
binfmt_misc /proc/sys/fs/binfmt_misc
|
binfmt_misc /proc/sys/fs/binfmt_misc
|
||||||
eend $?
|
if eend $? ; then
|
||||||
|
local fmts
|
||||||
|
ebegin "Loading custom binary format handlers"
|
||||||
|
fmts=$(grep -hsv -e '^[#;]' -e '^[[:space:]]*$' \
|
||||||
|
/run/binfmt.d/*.conf \
|
||||||
|
"/etc"/binfmt.d/*.conf \
|
||||||
|
""/usr/lib/binfmt.d/*.conf)
|
||||||
|
if [ -n "${fmts}" ]; then
|
||||||
|
echo "${fmts}" > /proc/sys/fs/binfmt_misc/register
|
||||||
|
fi
|
||||||
|
eend $?
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
# 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=/usr/sbin/rarpd
|
||||||
command_args="-f $rarpd_args"
|
command_args="-f $rarpd_args"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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()
|
depend()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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"
|
description="Mount the root fs read/write"
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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=/usr/sbin/rpcbind
|
||||||
command_args=$rpcbind_args
|
command_args=$rpcbind_args
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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"
|
description="Saves the caches OpenRC uses to non volatile storage"
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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."
|
description="Saves a kernel dump."
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2009 Roy Marples <roy@marples.name>
|
# 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.
|
# This script was inspired by the equivalent rc.d staticroute from NetBSD.
|
||||||
|
|
||||||
@@ -81,7 +81,7 @@ do_routes()
|
|||||||
*) family=;;
|
*) family=;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
route $famly $xtra $2 -$args
|
route $family $xtra $2 -$args
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
veend $?
|
veend $?
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
# 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()
|
depend()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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()
|
depend()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2009 Roy Marples <roy@marples.name>
|
# 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."
|
description="Sets the local clock to the mtime of a given file."
|
||||||
|
|
||||||
@@ -16,7 +16,9 @@ depend()
|
|||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
ebegin "Setting the local clock based on last shutdown time"
|
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 $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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() {
|
depend() {
|
||||||
need localmount
|
need localmount
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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()
|
depend()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
# 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()
|
depend()
|
||||||
{
|
{
|
||||||
@@ -10,16 +10,25 @@ depend()
|
|||||||
|
|
||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
local conf= retval=0
|
local conf= retval=0 err errs
|
||||||
|
|
||||||
ebegin "Configuring kernel parameters"
|
ebegin "Configuring kernel parameters"
|
||||||
eindent
|
eindent
|
||||||
|
|
||||||
for conf in /etc/sysctl.d/*.conf /etc/sysctl.conf; do
|
for conf in /etc/sysctl.d/*.conf /etc/sysctl.conf; do
|
||||||
if [ -r "$conf" ]; then
|
if [ -r "$conf" ]; then
|
||||||
vebegin "applying $conf"
|
vebegin "applying $conf"
|
||||||
sysctl -p "$conf" >/dev/null
|
if ! err=$(sysctl -q -p "$conf" 2>&1) ; then
|
||||||
|
errs="${errs} ${err}"
|
||||||
|
sysctl -q -e -p "${conf}"
|
||||||
|
fi
|
||||||
veend $? || retval=1
|
veend $? || retval=1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
eoutdent
|
eoutdent
|
||||||
eend $retval "Some errors were encountered"
|
if [ ${retval} -eq 0 ] && [ -n "${errs}" ] ; then
|
||||||
|
ewarn "Unknown keys:${errs}"
|
||||||
|
fi
|
||||||
|
eend $retval "Some errors were encountered: ${errs}"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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."
|
description="Mount the sys filesystem."
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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=/usr/sbin/syslogd
|
||||||
command_args=$syslogd_args
|
command_args=$syslogd_args
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2008-2009 Roy Marples <roy@marples.name>
|
# 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."
|
description="Configures terminal encoding."
|
||||||
|
|
||||||
@@ -10,6 +10,8 @@ ttyn=${rc_tty_number:-${RC_TTY_NUMBER:-12}}
|
|||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
keyword -openvz -prefix -uml -vserver -xenu
|
keyword -openvz -prefix -uml -vserver -xenu
|
||||||
|
need root
|
||||||
|
after bootmisc
|
||||||
}
|
}
|
||||||
|
|
||||||
start()
|
start()
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2008 Roy Marples <roy@marples.name>
|
# 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()
|
depend()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
# 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}}
|
: ${urandom_seed:=${URANDOM_SEED:-/var/run/random-seed}}
|
||||||
description="Initializes the random number generator."
|
description="Initializes the random number generator."
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!@PREFIX@/sbin/runscript
|
#!@PREFIX@/sbin/runscript
|
||||||
# Copyright (c) 2008-2009 Roy Marples <roy@marples.name>
|
# 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()
|
depend()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.\" Copyright (c) 2007-2008 Roy Marples
|
.\" Copyright (c) 2007-2008 Roy Marples
|
||||||
.\" All rights reserved
|
|
||||||
.\"
|
.\"
|
||||||
.\" Redistribution and use in source and binary forms, with or without
|
.\" Redistribution and use in source and binary forms, with or without
|
||||||
.\" modification, are permitted provided that the following conditions
|
.\" modification, are permitted provided that the following conditions
|
||||||
@@ -106,8 +105,7 @@ and
|
|||||||
respectively, but only work when
|
respectively, but only work when
|
||||||
.Va EINFO_VERBOSE
|
.Va EINFO_VERBOSE
|
||||||
is true. You can also make the
|
is true. You can also make the
|
||||||
.Fn einfo ,
|
.Fn einfo
|
||||||
.Fn ewarn ,
|
|
||||||
and
|
and
|
||||||
.Fn ebegin
|
.Fn ebegin
|
||||||
functions silent by setting
|
functions silent by setting
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.\" Copyright (c) 2008-2009 Roy Marples
|
.\" Copyright (c) 2008-2009 Roy Marples
|
||||||
.\" All rights reserved
|
|
||||||
.\"
|
.\"
|
||||||
.\" Redistribution and use in source and binary forms, with or without
|
.\" Redistribution and use in source and binary forms, with or without
|
||||||
.\" modification, are permitted provided that the following conditions
|
.\" modification, are permitted provided that the following conditions
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.\" Copyright (c) 2007-2009 Roy Marples
|
.\" Copyright (c) 2007-2009 Roy Marples
|
||||||
.\" All rights reserved
|
|
||||||
.\"
|
.\"
|
||||||
.\" Redistribution and use in source and binary forms, with or without
|
.\" Redistribution and use in source and binary forms, with or without
|
||||||
.\" modification, are permitted provided that the following conditions
|
.\" modification, are permitted provided that the following conditions
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.\" Copyright (c) 2007-2009 Roy Marples
|
.\" Copyright (c) 2007-2009 Roy Marples
|
||||||
.\" All rights reserved
|
|
||||||
.\"
|
.\"
|
||||||
.\" Redistribution and use in source and binary forms, with or without
|
.\" Redistribution and use in source and binary forms, with or without
|
||||||
.\" modification, are permitted provided that the following conditions
|
.\" 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
|
.\" Copyright (c) 2007-2009 Roy Marples
|
||||||
.\" All rights reserved
|
|
||||||
.\"
|
.\"
|
||||||
.\" Redistribution and use in source and binary forms, with or without
|
.\" Redistribution and use in source and binary forms, with or without
|
||||||
.\" modification, are permitted provided that the following conditions
|
.\" modification, are permitted provided that the following conditions
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.\" Copyright (c) 2007-2008 Roy Marples
|
.\" Copyright (c) 2007-2008 Roy Marples
|
||||||
.\" All rights reserved
|
|
||||||
.\"
|
.\"
|
||||||
.\" Redistribution and use in source and binary forms, with or without
|
.\" Redistribution and use in source and binary forms, with or without
|
||||||
.\" modification, are permitted provided that the following conditions
|
.\" modification, are permitted provided that the following conditions
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.\" Copyright (c) 2007-2008 Roy Marples
|
.\" Copyright (c) 2007-2008 Roy Marples
|
||||||
.\" All rights reserved
|
|
||||||
.\"
|
.\"
|
||||||
.\" Redistribution and use in source and binary forms, with or without
|
.\" Redistribution and use in source and binary forms, with or without
|
||||||
.\" modification, are permitted provided that the following conditions
|
.\" modification, are permitted provided that the following conditions
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.\" Copyright (c) 2007-2008 Roy Marples
|
.\" Copyright (c) 2007-2008 Roy Marples
|
||||||
.\" All rights reserved
|
|
||||||
.\"
|
.\"
|
||||||
.\" Redistribution and use in source and binary forms, with or without
|
.\" Redistribution and use in source and binary forms, with or without
|
||||||
.\" modification, are permitted provided that the following conditions
|
.\" modification, are permitted provided that the following conditions
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.\" Copyright (c) 2007-2008 Roy Marples
|
.\" Copyright (c) 2007-2008 Roy Marples
|
||||||
.\" All rights reserved
|
|
||||||
.\"
|
.\"
|
||||||
.\" Redistribution and use in source and binary forms, with or without
|
.\" Redistribution and use in source and binary forms, with or without
|
||||||
.\" modification, are permitted provided that the following conditions
|
.\" modification, are permitted provided that the following conditions
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.\" Copyright (c) 2007-2008 Roy Marples
|
.\" Copyright (c) 2007-2008 Roy Marples
|
||||||
.\" All rights reserved
|
|
||||||
.\"
|
.\"
|
||||||
.\" Redistribution and use in source and binary forms, with or without
|
.\" Redistribution and use in source and binary forms, with or without
|
||||||
.\" modification, are permitted provided that the following conditions
|
.\" modification, are permitted provided that the following conditions
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.\" Copyright (c) 2007-2008 Roy Marples
|
.\" Copyright (c) 2007-2008 Roy Marples
|
||||||
.\" All rights reserved
|
|
||||||
.\"
|
.\"
|
||||||
.\" Redistribution and use in source and binary forms, with or without
|
.\" Redistribution and use in source and binary forms, with or without
|
||||||
.\" modification, are permitted provided that the following conditions
|
.\" modification, are permitted provided that the following conditions
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.\" Copyright (c) 2007-2008 Roy Marples
|
.\" Copyright (c) 2007-2008 Roy Marples
|
||||||
.\" All rights reserved
|
|
||||||
.\"
|
.\"
|
||||||
.\" Redistribution and use in source and binary forms, with or without
|
.\" Redistribution and use in source and binary forms, with or without
|
||||||
.\" modification, are permitted provided that the following conditions
|
.\" modification, are permitted provided that the following conditions
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.\" Copyright (c) 2007-2009 Roy Marples
|
.\" Copyright (c) 2007-2009 Roy Marples
|
||||||
.\" All rights reserved
|
|
||||||
.\"
|
.\"
|
||||||
.\" Redistribution and use in source and binary forms, with or without
|
.\" Redistribution and use in source and binary forms, with or without
|
||||||
.\" modification, are permitted provided that the following conditions
|
.\" modification, are permitted provided that the following conditions
|
||||||
@@ -148,7 +147,8 @@ have this keyword.
|
|||||||
Don't stop this service when changing runlevels, even if not present.
|
Don't stop this service when changing runlevels, even if not present.
|
||||||
This includes shutting the system down.
|
This includes shutting the system down.
|
||||||
.It Dv -timeout
|
.It Dv -timeout
|
||||||
Do not time out waiting for that service.
|
Other services should wait indefinitely for this service to start. Use
|
||||||
|
this keyword if your service may take longer than 60 seconds to start.
|
||||||
.It Dv -jail
|
.It Dv -jail
|
||||||
When in a jail, exclude this service from any dependencies. The service can
|
When in a jail, exclude this service from any dependencies. The service can
|
||||||
still be run directly. Set via
|
still be run directly. Set via
|
||||||
@@ -462,12 +462,6 @@ show()
|
|||||||
|
|
||||||
.Ed
|
.Ed
|
||||||
.Sh BUGS
|
.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.
|
is_older_than should return 0 on success.
|
||||||
Instead we return 1 to be compliant with Gentoo baselayout.
|
Instead we return 1 to be compliant with Gentoo baselayout.
|
||||||
Users are encouraged to use the is_newer_than function which returns correctly.
|
Users are encouraged to use the is_newer_than function which returns correctly.
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.\" Copyright (c) 2007-2009 Roy Marples
|
.\" Copyright (c) 2007-2009 Roy Marples
|
||||||
.\" All rights reserved
|
|
||||||
.\"
|
.\"
|
||||||
.\" Redistribution and use in source and binary forms, with or without
|
.\" Redistribution and use in source and binary forms, with or without
|
||||||
.\" modification, are permitted provided that the following conditions
|
.\" modification, are permitted provided that the following conditions
|
||||||
|
|||||||
4
mk/cc.mk
4
mk/cc.mk
@@ -1,7 +1,7 @@
|
|||||||
# Copyright (c) 2008 Roy Marples <roy@marples.name>
|
# Copyright (c) 2008 Roy Marples <roy@marples.name>
|
||||||
|
|
||||||
# Setup some good default CFLAGS
|
# Setup some good default CFLAGS
|
||||||
CFLAGS?= -O2
|
CFLAGS?= -O2 -g
|
||||||
|
|
||||||
# Default to using the C99 standard
|
# Default to using the C99 standard
|
||||||
CSTD?= c99
|
CSTD?= c99
|
||||||
@@ -31,3 +31,5 @@ _CC_FLAGS_SH= for f in ${_CCFLAGS}; do \
|
|||||||
done;
|
done;
|
||||||
_CC_FLAGS:= $(shell ${_CC_FLAGS_SH})
|
_CC_FLAGS:= $(shell ${_CC_FLAGS_SH})
|
||||||
CFLAGS+= ${_CC_FLAGS}
|
CFLAGS+= ${_CC_FLAGS}
|
||||||
|
|
||||||
|
include ${MK}/debug.mk
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# rules to enable debugging support
|
# rules to enable debugging support
|
||||||
# Copyright (c) 2008 Roy Marples <roy@marples.name>
|
# 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_SH= case "${DEBUG}" in "") echo "";; *) echo "-DRC_DEBUG";; esac
|
||||||
_RC_DEBUG:= $(shell ${_RC_DEBUG_SH})
|
_RC_DEBUG:= $(shell ${_RC_DEBUG_SH})
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user