How to execute a script while booting Linux from flashdrive?
Posted
by Usman Ajmal
on Super User
See other posts from Super User
or by Usman Ajmal
Published on 2010-02-14T13:55:02Z
Indexed on
2010/03/23
2:01 UTC
Read the original article
Hit count: 272
linux
I know i can make my script run at boot time in runlevel 2 by putting it in /etc/init.d/ and creating a symbolic to it in /etc/rc2.d but thats when Linux is on hard drive.
I want to run my script from a flashdrive such that when a user plug in a flashdrive and powers ON the machine, it may start booting from the OS in flash drive and eventually executing my script.
How can I achieve such a functionality?
I have tried burning OS to flashdrive but I never succeeded in booting OS from flashdrive.
© Super User or respective owner