Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 256319 Details for
Bug 318365
systemd - Replacement for sysvinit with extensive usage of parallelization
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
udev: Don't load openrc if running systemd
udev-systemd-and-openrc.patch (text/plain), 1.37 KB, created by
Henry Gebhardt
on 2010-12-04 15:06:26 UTC
(
hide
)
Description:
udev: Don't load openrc if running systemd
Filename:
MIME Type:
Creator:
Henry Gebhardt
Created:
2010-12-04 15:06:26 UTC
Size:
1.37 KB
patch
obsolete
>diff --git a/sys-fs/udev/files/move_tmp_persistent_rules-112-r1.sh b/sys-fs/udev/files/move_tmp_persistent_rules-112-r1.sh >index 1a02597..bad8b5a 100755 >--- a/sys-fs/udev/files/move_tmp_persistent_rules-112-r1.sh >+++ b/sys-fs/udev/files/move_tmp_persistent_rules-112-r1.sh >@@ -2,7 +2,23 @@ > # Copyright 1999-2007 Gentoo Foundation > # Distributed under the terms of the GNU General Public License v2 > >-. /etc/init.d/functions.sh >+if test "`ps -p 1 -o comm=`" = "systemd"; then >+ SCRIPTNAME="$0" >+ >+ ebegin() { >+ logger -t "$SCRIPTNAME" "${@:1}" >+ } >+ >+ eend() { >+ local retval=$1 >+ if test $retval -ne 0; then >+ logger -t "$SCRIPTNAME" "Error return code $retval: ${@:2}" >+ exit $retval >+ fi >+ } >+else >+ . /etc/init.d/functions.sh >+fi > > # store persistent-rules that got created while booting > # when / was still read-only >@@ -22,4 +38,4 @@ store_persistent_rules() { > > store_persistent_rules > >-# vim:ts=4 >+# vim:ts=4 sw=4 >diff --git a/sys-fs/udev/files/net-130-r1.sh b/sys-fs/udev/files/net-130-r1.sh >index af61870..b755069 100755 >--- a/sys-fs/udev/files/net-130-r1.sh >+++ b/sys-fs/udev/files/net-130-r1.sh >@@ -5,6 +5,11 @@ > # Copyright 2007 Roy Marples <uberlord@gentoo.org> > # Distributed under the terms of the GNU General Public License v2 > >+if test "`ps -p 1 -o comm=`" = "systemd"; then >+ logger -t "$0" "You are using systemd, exiting. (${@:1})" >+ exit >+fi >+ > IFACE=$1 > ACTION=$2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 318365
:
230771
|
230773
|
230777
|
230779
|
230887
|
230889
|
231157
|
231305
|
238431
|
241097
|
241099
|
244953
|
244955
|
244957
|
244959
|
256198
|
256199
|
256201
|
256202
|
256203
|
256205
|
256209
| 256319 |
256349
|
256351
|
256352
|
256435
|
256437
|
256439
|
256446
|
256698
|
257917
|
257922
|
270185
|
270187
|
270189
|
270191
|
271583
|
277115
|
277117
|
306293
|
306295
|
306297
|
306299
|
306339
|
306341
|
306343
|
306345