Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why would portage want to do this to /etc/init.d/net.eth0?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
apberzerk
Apprentice
Apprentice


Joined: 11 Jan 2004
Posts: 278
Location: kansas...

PostPosted: Sat Jul 02, 2005 5:16 am    Post subject: Why would portage want to do this to /etc/init.d/net.eth0? Reply with quote

After some updates, etc-update and cfg-update wanted to replace /etc/init.d/net.eth0 with nothing but the following:

Code:
start() {
        ebegin "Bringing ${IFACE} up"
        /sbin/ifconfig lo 127.0.0.1 up 2>/dev/null
        /sbin/route add -net 127.0.0.0 netmask 255.0.0.0 \
                gw 127.0.0.1 dev lo 2> /dev/null
        eend 0
}

stop() {
        ebegin "Bringing ${IFACE} down"
        /sbin/ifconfig ${IFACE} down &>/dev/null
        eend 0
}


Doesn't really seem like a good idea. In fact, it broke my network when I tried it. It just pretended to bring net.eth0 up without really doing anything. Any idea why it would want /etc/init.d/net.eth0 to be replaced like this?

- Phil
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4923
Location: Gothenburg, Sweden

PostPosted: Sat Jul 02, 2005 6:48 am    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads. Please see https://forums.gentoo.org/viewtopic-t-347256-highlight-baselayout+eth0.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum