You are not logged in.
Pages: 1
Hi all
Is there a script in the repo's that cam automatically add apps to the daemons list in rc.conf? Im making a few scripts, it it would help a bit.
Offline
you can use sed:
sed -e "s/\(^DAEMONS=(.*\))/\1 YOURNEWDAEMONHERE)/" /etc/rc.conf
Of course you have to check the relative position of the daemons you add in order to satisfy dependencies.
Offline
excellent, works great. Is there a way to make sed remove daemons?
Offline
It uses regex in most cases, could be worth investing some time to get to know regex, it is quite powerful once you learn it.
Some doc:
http://www.grymoire.com/Unix/Sed.html#uh-0
Sed one liners, good examples:
http://student.northpark.edu/pemente/sed/sed1line.txt
Cerebral: "Welcome to the distro. You'll never leave. Mwahaha"
Offline
that seems a bit too complicated for me :S
ive tried modding that script to replace/remove. hasnt worked. Can anyone help?
Offline
Pages: 1