LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   start up script run once ?? (http://www.linuxquestions.org/questions/linux-software-2/start-up-script-run-once-129567/)

johnyy 12-28-2003 01: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:
thanks

johnyy 12-28-2003 01: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

thanks


All times are GMT -5. The time now is 12:19 AM.