PrintLogo

Startup Scripts for Housey




Housey is hooked up to the 8048 dev system. Housey wasn't very smart at startup, so I added some init scripts. uClibc uses System V init, which means (among other things) that S scripts in /etc/init.d are executed in ASCII order. So, S10 runs before S20. I put two scripts in /etc/init.d. In S40net I put:

ifconfig eth0 10.50.100.21 netmask 255.255.255.0 broadcast 10.50.100.255
route add default gw 10.50.100.82 metric 1
hostname housey

In S50gpm I put:

rm /var/lock/gpm.pid
gpm -m /dev/ttyS0

Now, Housey comes up with networking configured and gpm running. Here is the ifconfig manpage. Here is the route manpage.

--Agatha



This article comes from NetAdminTools:
http://www.netadmintools.com/

The URL for this story is:
http://www.netadmintools.com/art245.html

Copyright 1997-2008 NetAdminTools.com. Read our Terms of Use.