You are not logged in.
I want to run a script, which requires root permissions before starting the network daemon.
How would I go about achieving that? I know the commands, but I need to do this before starting network in my DAEMONS array.
Can I just create a daemon script and add it to the DAEMONS array before starting @network?
How would I give it root access? via sudoers?
Last edited by Inxsible (2010-07-15 19:29:18)
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
DAEMONS=( ... !network ...)
Run your script, start the network.
Offline
DAEMONS=( ... !network ...)
Run your script, start the network.
you mean start the network in the script itself? That could possibly work. Let me try it out.
I want this for all users of the system, so I guess I can place the script in the /etc/rc.d folder?
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
> I want this for all users of the system, so I guess I can place the script in the /etc/rc.d folder?
Somewhere in /etc for sure :-)
Offline
Or use netcfg, which supports exactly what you want.
Offline
Or use netcfg, which supports exactly what you want.
Off to man netcfg / wiki: netcfg
Last edited by Inxsible (2010-07-15 06:09:42)
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
I read the wiki for netcfg and I was a little confused between
net-profiles -- which starts up the profiles on boot and
net-auto-wired -- which automatically connects to wired networks.
How are they different? And if they are different, do I need to have both in my DAEMONS array?
Last edited by Inxsible (2010-07-15 06:39:30)
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
Ok. I have created a profile and everything works except that I get this message/error
╔═[02:38]═[murtuza @ wolfdale]
╚═══===═══[/etc/network.d]>> sudo netcfg eth0-dhcp
:: eth0-dhcp up [BUSY]
find: `/var/run/network//suspend/': No such file or directory [DONE]
What does that mean?
Last edited by Inxsible (2010-07-15 06:41:54)
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
Ok. I have created a profile and everything works except that I get this message/error
╔═[02:38]═[murtuza @ wolfdale] ╚═══===═══[/etc/network.d]>> sudo netcfg eth0-dhcp :: eth0-dhcp up [BUSY] find: `/var/run/network//suspend/': No such file or directory [DONE]
What does that mean?
http://bbs.archlinux.org/viewtopic.php?id=91461&p=1
http://bugs.archlinux.org/task/18443?
It seems to be a netcfg bug.
Last edited by cesura (2010-07-15 19:24:45)
Offline
Thanks brad. In that case, this thread be SOLVED
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline