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.
I made a Live CD which does exactly this, using 'Finnix' (a Linux distro) but I am unable to make Finnix boot from flash drive. Their finnix-thumbdrive utility does not work at all.
– Uthman Feb 15 '10 at 04:54