File: network

package info (click to toggle)
rootstrap 0.3-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 116 kB
  • ctags: 37
  • sloc: python: 126; makefile: 68; sh: 59
file content (15 lines) | stat: -rw-r--r-- 284 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

ifconfig $interface $uml netmask $netmask

if test -n "$gateway"; then
    route add default gw $gateway
fi

if test -n "$domain"; then
    echo "domain $domain" > /etc/resolv.conf
fi

if test -n "$nameserver"; then
    echo "nameserver $nameserver" >> /etc/resolv.conf
fi