Simplifying the LFS Bootscripts

Archaic archaic at linuxfromscratch.org
Sun Jan 9 08:34:21 PST 2005


On Sun, Jan 09, 2005 at 11:06:42AM +0500, Alexander E. Patrakov wrote:
> 
> up() {
>  ip link set eth1 up
>  ip addr add 192.168.0.101/24 broadcast 192.168.0.255 dev eth1
>  ip addr add 192.168.0.102/24 broadcast 192.168.0.255 dev eth1
>  ip route add 192.168.0.0/16 via 192.168.0.1
> }

I must say I *really* like this option. This is perfect for teaching the
basics of the ip command (much like make_devices taught the basics of
the mknod command).

-- 
Archaic

"The power to tax involves the power to destroy;...the power to destroy
may defeat and render useless the power to create...."

- Chief Justice John Marshall, 1819.




More information about the lfs-dev mailing list