File: dhclient-script

package info (click to toggle)
rootstrap 0.3.24-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 156 kB
  • ctags: 41
  • sloc: sh: 260; python: 185; makefile: 68
file content (9 lines) | stat: -rw-r--r-- 320 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
#!/bin/sh -e

if [ "x$old_ip_address" = x ] || [ "x$old_ip_address" != "x$new_ip_address" ] \
   || [ "x$reason" = xBOUND ] || [ "x$reason" = xREBOOT ]; then
    ifconfig $interface inet $new_ip_address $new_subnet_arg $new_broadcast_arg
    for router in $new_routers; do
      route add default gw $router
    done
fi