0

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

Edited by Shaikh Mohsin: n/a

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by gerard4143
0

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

Edited by gerard4143: n/a

0

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....

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.