If you look at the "chkconfig" line of /etc/init.d/network you'll see that the network has a start priority of "10".
/etc/init.d/yourscript:
#!/bin/bash
#
# yourscript short description
#
# chkconfig: 2345 9 20
# description: long description
case "$1" in
start)
Do your thing !!!
chkconfig yourscript off
;;
stop|status|restart|reload|force-reload)
# do nothing
;;
esac
Then run chkconfig yourscript on
to get it to run at boot. The chkconfig yourscript off
inside the script should disable it running on any subsequent boots.
Some versions of CentOS/RHEL/Fedora have a "firstboot" program you could try to use, but that seems like a pain.
You sure you can't run your network reconfiguration script inside of a %post in a kickstart? That's what I do.
Best Answer
Put your script in the init.d so that it gets executed at boot.
To make sure that it only gets executed once a day, all you need to do is store the date of the previous execution and compare that to the current date. This is quite simple to do in any script language.