Compare commits
10 Commits
openrc-0.1
...
openrc-0.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6ceb62969a | ||
|
|
d5ecc9d746 | ||
|
|
6df5176462 | ||
|
|
0c6df86503 | ||
|
|
cd2d520fd1 | ||
|
|
0e3860e76f | ||
|
|
670b72b328 | ||
|
|
3ebaa31edb | ||
|
|
0f3813c8cf | ||
|
|
28c13790ff |
@@ -1,3 +1,3 @@
|
||||
NAME= openrc
|
||||
VERSION= 0.10
|
||||
VERSION= 0.10.4
|
||||
PKG= ${NAME}-${VERSION}
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
# The consolefont service is not activated by default. If you need to
|
||||
# use it, you should run "rc-update add consolefont boot" as root.
|
||||
#
|
||||
# consolefont specifies the default font that you'd like Linux to use on the
|
||||
# console. You can find a good selection of fonts in /usr/share/consolefonts;
|
||||
# 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.
|
||||
# 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 boot" as root).
|
||||
consolefont="default8x16"
|
||||
|
||||
# consoletranslation is the charset map file to use. Leave commented to use
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
# In other words, you probably should DO NOTHING HERE...
|
||||
|
||||
# Prefer ifconfig over iproute2
|
||||
#modules="ifconfig"
|
||||
#modules="!iproute2"
|
||||
|
||||
# You can also specify other modules for an interface
|
||||
# In this case we prefer udhcpc over dhcpcd
|
||||
@@ -57,7 +57,7 @@
|
||||
|
||||
# If you don't specify an interface then we prefer iproute2 if it's installed
|
||||
# To prefer ifconfig over iproute2
|
||||
#modules="ifconfig"
|
||||
#modules="!iproute2"
|
||||
|
||||
# For a static configuration, use something like this
|
||||
# (They all do exactly the same thing btw)
|
||||
|
||||
@@ -9,7 +9,7 @@ ttyn=${rc_tty_number:-${RC_TTY_NUMBER:-12}}
|
||||
|
||||
depend()
|
||||
{
|
||||
keyword -openvz -uml -vserver -xenu
|
||||
keyword -lxc -openvz -uml -vserver -xenu
|
||||
use root
|
||||
after bootmisc
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ udhcpc_start()
|
||||
if ${sendhost}; then
|
||||
local hname="$(hostname)"
|
||||
if [ "${hname}" != "(none)" ] && [ "${hname}" != "localhost" ]; then
|
||||
args="${args} --hostname='${hname}'"
|
||||
args="${args} -x hostname:'${hname}'"
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
|
||||
@@ -37,14 +37,23 @@ fi
|
||||
|
||||
# /run is a new directory for storing volatile runtime data.
|
||||
# Read more about /run at https://lwn.net/Articles/436012
|
||||
sys="$(rc --sys)"
|
||||
|
||||
if [ ! -d /run ]; then
|
||||
eerror "The /run directory does not exist. Unable to continue."
|
||||
return 1
|
||||
if [ "$sys" = VSERVER ]; then
|
||||
if [ -e /run ]; then
|
||||
rm -rf /run
|
||||
fi
|
||||
mkdir /run
|
||||
else
|
||||
eerror "The /run directory does not exist. Unable to continue."
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if mountinfo -q /run; then
|
||||
einfo "/run is already mounted, skipping"
|
||||
else
|
||||
if [ "$sys" = VSERVER ]; then
|
||||
rm -rf /run/*
|
||||
elif ! mountinfo -q /run; then
|
||||
ebegin "Mounting /run"
|
||||
rc=0
|
||||
if ! fstabinfo --mount /run; then
|
||||
|
||||
@@ -343,7 +343,7 @@ do_mark_service(int argc, char **argv)
|
||||
if (service == NULL || *service == '\0')
|
||||
eerrorx("%s: no service specified", applet);
|
||||
|
||||
if (strncmp(applet, "mark_", 5) &&
|
||||
if (!strncmp(applet, "mark_", 5) &&
|
||||
(bit = lookup_service_state(applet + 5)))
|
||||
ok = rc_service_mark(service, bit);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user