~ubuntu-branches/ubuntu/jaunty/oldsys-preseed/jaunty

« back to all changes in this revision

Viewing changes to tests/arm/nslu2_static_no_gw.test

  • Committer: Bazaar Package Importer
  • Author(s): Martin Michlmayr, Martin Michlmayr
  • Date: 2006-06-13 23:05:08 UTC
  • Revision ID: james.westby@ubuntu.com-20060613230508-038u5qrr83m5ttkl
Tags: 0.3
[ Martin Michlmayr ]
Explicitly run bash rather than /bin/sh in the test suite since
it relies on features in bash.  Closes: #373243.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
parse_sysconf $TEST_DIR/nslu2_static_no_gw.sysconf
 
2
if [ "$INTERFACE" = "ixp0" ]; then
 
3
        INTERFACE=eth0
 
4
fi
 
5
if [ "$NET_CONFIG" = "static" -a "$IPADDRESS" = "192.168.1.77" ]; then
 
6
        unset NET_CONFIG
 
7
fi
 
8
if [ "$NET_CONFIG" != "static" ]; then
 
9
        IPADDRESS=192.168.1.77
 
10
        NETMASK=255.255.255.0
 
11
        GATEWAY=192.168.1.1
 
12
        [ -z "$NAMESERVERS" ] && NAMESERVERS=192.168.1.1
 
13
        dhcp_fallback "$1"
 
14
fi
 
15