Bug 224425 - sys-apps/openrc-0.2.5: keeps moving net.lo to force a symlink.
Bug#: 224425 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: trivial Priority: P2
Resolution: FIXED Assigned To: base-system@gentoo.org Reported By: compguy284@yahoo.com
Component: baselayout
URL: 
Summary: sys-apps/openrc-0.2.5: keeps moving net.lo to force a symlink.
Keywords:  
Status Whiteboard: 
Opened: 2008-06-01 02:48 0000
Description:   Opened: 2008-06-01 02:48 0000
* Moved net service 'net.lo' to 'net.lo.openrc.bak' to force a symlink.
 * You should delete 'net.lo.openrc.bak' if you don't need it.
 * You should now update all files in /etc, using etc-update
 * or equivalent before restarting any services or this host.


Reproducible: Always

Steps to Reproduce:
1. emerge openrc
2.
3.




i believe this is the correct fix:
--- /usr/portage/sys-apps/openrc/openrc-0.2.5.ebuild    2008-05-31
12:47:30.000000000 -0700
+++ openrc-0.2.5.ebuild 2008-05-31 19:45:38.000000000 -0700
@@ -160,7 +160,7 @@
        # force net init.d scripts into symlinks
        for f in "${ROOT}"/etc/init.d/net.* ; do
                [[ -e ${f} ]] || continue # catch net.* not matching anything
-               [[ ${f} == *.net.lo ]] && continue # real file now
+               [[ ${f} == */net.lo ]] && continue # real file now
                [[ ${f} == *.openrc.bak ]] && continue
                if [[ ! -L ${f} ]] ; then
                        elog "Moved net service '${f##*/}' to
'${f##*/}.openrc.bak' to force a symlink."

------- Comment #1 From SpanKY 2008-06-01 03:01:06 0000 -------
thanks, fixed in cvs

http://sources.gentoo.org/sys-apps/openrc/openrc-0.2.5.ebuild?r1=1.2&r2=1.3
http://sources.gentoo.org/sys-apps/openrc/openrc-9999.ebuild?r1=1.35&r2=1.36