diff options
author | Oyvind Repvik <nail@nslu2-linux.org> | 2007-03-09 21:38:01 +0000 |
---|---|---|
committer | Oyvind Repvik <nail@nslu2-linux.org> | 2007-03-09 21:38:01 +0000 |
commit | b6ae1290d940b748aea399d57506e7cb853980a2 (patch) | |
tree | c797a785064711006c7717a9217df9d9e7755341 /packages/foonas-init/files/boot/udhcpc.script | |
parent | a85f58a9138734421bcf7f15a05aaa8e937bcdda (diff) |
remove openturbostation distro, add foonas
Diffstat (limited to 'packages/foonas-init/files/boot/udhcpc.script')
-rw-r--r-- | packages/foonas-init/files/boot/udhcpc.script | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/foonas-init/files/boot/udhcpc.script b/packages/foonas-init/files/boot/udhcpc.script new file mode 100644 index 0000000000..3f437e3143 --- /dev/null +++ b/packages/foonas-init/files/boot/udhcpc.script @@ -0,0 +1,17 @@ +#!/bin/sh +# executed by udhcpc to do the real work of configuring an interface +# writes the result (if any) to file descriptor 9 +case "$1" in +deconfig) # ignored + :;; +renew|bound) # this gives the real information + test -n "$ip" && { + echo "ip='$ip'" + echo "subnet='$subnet'" + echo "broadcast='$broadcast'" + echo "router='$router'" + } >&9;; +leasefail) # ignore - probably no dhcp server + :;; +*) echo "udhcpc: $*: command not recognised" >&2;; +esac |