-   Linux - Software (
-   -   start up script run once ?? (

johnyy 12-28-2003 02:40 PM

start up script run once ??
hello, what i want to do it's that after my redhat installed. when it reboot. i want to run a script to clean up some files.. let say i want to add some account, delete some account. /usr/sbin/userdel games. after all the clearning. i want delete this script so next boot up wrong run it again.
where i place the script under ???

i try the %post option in the ks.cfg but it didn't work for me..:mad:

johnyy 12-28-2003 02:59 PM

i just find out a way.. vi /etc/rc3.d/S11del
put all the clearning word in S11del, at the end of the script i added rm -f /etc/rc3.d/S11del and chmod 7 S11del and it works... and i wonder does anybody had good sugestion


All times are GMT -5. The time now is 01:38 AM.