LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Run script after install (https://www.linuxquestions.org/questions/linux-general-1/run-script-after-install-771116/)

traxy 11-23-2009 09:10 PM

Run script after install
 
I am having trouble getting my kickstart file working (nobody really respopnded to my last post) so ive decided to create a shell script that I want run after installing my system. All I want to know how to do is create a kickstart file that will simply copy a file onto the installed OS and run the script on first boot (then delete itself).

Thanks in advance

exvor 11-23-2009 09:37 PM

Cant you just create a shell script to copy the file over and then delete it self kinda like this.

Code:


#!/bin/bash

cp /somelocation/somefile /newlocation/newfile
rm -rf /etc/rc.d/default/somescript

make the script executable and put it into the runtime stuff.

voyciz 11-23-2009 09:37 PM

You'll need to investigate the installation procedure for the distribution. This is not a universal subject.


All times are GMT -5. The time now is 05:29 AM.