Gentoo Archives: gentoo-dev

From: Peter Foley <pjfoley@×××××××.com>
To: gentoo-dev@g.o
Subject: [gentoo-dev] BUG 540 (Feature Request) on supporting routes on different devices
Date: Wed, 06 Feb 2002 01:57:32
Message-Id: 005301c1aee3$c7d6d900$0d00a8c0@chaos
1 Hello,
2
3 Just a quick question. I havent done much shell scripting but I was curious
4 if this line
5
6 (Taken from CVS : /gentoo-src/rc-scripts/init.d/net.et0)
7 **********
8 if [ -n "$gateway" ] && [ "${gateway%/*}" = "$IFACE" ]
9 **********
10
11 Checks to see if the gateway variable has two items in it like
12
13 (Taken from CVS : /gentoo-src/rc-scripts/etc/conf.d/net)
14 **********
15 #gateway="eth0/192.168.0.1"
16 **********
17
18 and if it does not have two items does it default to the current device in
19 the net file.
20
21 Ie. if it is net.eth0 then it would default to "dev eth0" and if it was in
22 the net.eth1 file then it would default to "dev eth1"
23
24 Peter.

Replies