Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
which file in gentoo is equivalent to /etc/network/if-up.d/
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
diablo465
Apprentice
Apprentice


Joined: 10 Sep 2013
Posts: 194

PostPosted: Wed Mar 26, 2014 10:38 am    Post subject: which file in gentoo is equivalent to /etc/network/if-up.d/ Reply with quote

In debian and fedora, I usually create a file, say mtu in path /etc/network/if-up.d/ , with the following statement:

Code:

#!/bin/sh
ifconfig ppp0 mtu 1200



By doing this, the mtu is automatically changed to 1200 every time I enable the ppp0 connection. How to do that in gentoo?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10156
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Mar 26, 2014 11:25 am    Post subject: Reply with quote

That would be /etc/conf.d/net:
Code:
mtu_ppp0=1200
See /usr/share/doc/netifrc-0.1/net.example.bz2 for more examples of what you can do. :wink:

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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