LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-23-2009, 09:10 PM   #1
traxy
LQ Newbie
 
Registered: Oct 2009
Posts: 9

Rep: Reputation: 0
Smile 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
 
Old 11-23-2009, 09:37 PM   #2
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
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.
 
Old 11-23-2009, 09:37 PM   #3
voyciz
Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 425

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RPM SPEC file install script run anti43 Linux - Software 2 05-05-2009 07:17 AM
Is a script, run at boot time from init.d, run with root authority? tmbrwolf53 Linux - Server 2 03-31-2007 08:15 PM
LXer: Free script lets you install and run IE 6 on Linux LXer Syndicated Linux News 0 09-30-2006 01:54 PM
How do I add external packages to my linux install and get it to run a script? michaelwl Linux - General 5 08-25-2006 03:15 AM
on Network Up Script run? On Battery power run script? v2-ncl Linux - General 0 12-08-2003 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration