View previous topic :: View next topic |
Author |
Message |
RasmusT n00b
Joined: 23 Jun 2008 Posts: 8
|
Posted: Wed Jul 02, 2008 12:07 pm Post subject: /etc/conf.d/net issue |
|
|
Hi
I need to change the ip address in /etc/conf.d/net with another user then root.
i have made a script i run thrue sudo, the script work find, and change the ip address.
But when i restart eth0 i get the following error: "Configuration not set for eth0 - assuming DHCP"
My /etc/conf.d/net look like this:
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d. To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
config_eth0=( "10.199.198.1/24" )
#routes_eth0=( "default via 10.199.198.1" )
config_eth1=( "10.199.199.29/24" )
routes_eth1=( "default via 10.199.199.254" )
Do i have to chroot / chown the file to get gentoo to read the file? |
|
Back to top |
|
|
richard.scott Veteran
Joined: 19 May 2003 Posts: 1497 Location: Oxfordshire, UK
|
Posted: Wed Jul 02, 2008 12:12 pm Post subject: Re: /etc/conf.d/net issue |
|
|
RasmusT wrote: | Do i have to chroot / chown the file to get gentoo to read the file? |
You'll need to make sure that the script has correct permissions for it to be read and also make sure that its formatting is correct.
can you post both the /etc/conf.d/net that the script creates and the output from "ls -al /etc/conf.d/net" |
|
Back to top |
|
|
RasmusT n00b
Joined: 23 Jun 2008 Posts: 8
|
Posted: Wed Jul 02, 2008 12:23 pm Post subject: Re: /etc/conf.d/net issue |
|
|
My /etc/conf.d/net look like the output i have posted after my script have run
output from ls -al /etc/conf.d/net
-rw-r--r-- 1 root root 401 Jul 2 14:15 /etc/conf.d/net
richard.scott wrote: | RasmusT wrote: | Do i have to chroot / chown the file to get gentoo to read the file? |
You'll need to make sure that the script has correct permissions for it to be read and also make sure that its formatting is correct.
can you post both the /etc/conf.d/net that the script creates and the output from "ls -al /etc/conf.d/net" |
|
|
Back to top |
|
|
richard.scott Veteran
Joined: 19 May 2003 Posts: 1497 Location: Oxfordshire, UK
|
Posted: Wed Jul 02, 2008 1:19 pm Post subject: Re: /etc/conf.d/net issue |
|
|
RasmusT wrote: | My /etc/conf.d/net look like the output i have posted after my script have run |
posting the actual /etc/conf.d/net file or the script that changes it would really help.
the /etc/conf.d/net file doesn't currently have any valid settings for eth0.
This is why it falls back to DHCP as there are not static details it can find for eth0 |
|
Back to top |
|
|
|