Hello Friends,
I have a small IP scan code written in shell script,i want my code should get executed as kernel get booted....plz tell how can i insert that code into new kernel...what are the steps should i follow.....

My aim of putting the IP scan code in kernel the idea behind that is as kernel get booted simultaneously my IP scan code will get executed ok....the resulting alive IP.....i want to connect that IP... is this possible if yes how....In simple way i want to toggle betwen 2 DHCP server's one from win & 2nd from Linux.

Is there any other way can i handle this....

Windows Server 2003 Ubuntu Linux
DHCP server DHCP server
| |
| |
_________________________________________
| |
Client
Can Choose
which DHCP he wants

Recommended Answers

All 3 Replies

Hello Friends,
I have a small IP scan code written in shell script,i want my code should get executed as kernel get booted....plz tell how can i insert that code into new kernel...what are the steps should i follow.....

The only thing that you can insert into a Linux kernel are kernel modules which are written in C.

Check out this link:

http://tldp.org/LDP/lkmpg/2.6/html/

If you want to execute the script on boot then that's a different story.

http://www.linuxforums.org/forum/redhat-fedora-linux-help/24951-start-script-boot.html

Thanks Gerard i followed ur links & i got to no...how to make module...but one question...i want to add my new module in new kernel...how to do that and how to place that module that execute at last of the all init program...can u help me....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.