]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/openslug-init/openslug-init-0.10/boot/udhcpc.script
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / openslug-init / openslug-init-0.10 / boot / udhcpc.script
1 #!/bin/sh
2 # executed by udhcpc to do the real work of configuring an interface
3 # writes the result (if any) to file descriptor 9
4 case "$1" in
5 deconfig)       # ignored
6         :;;
7 renew|bound)    # this gives the real information
8         test -n "$ip" && {
9                 echo "ip='$ip'"
10                 echo "subnet='$subnet'"
11                 echo "broadcast='$broadcast'"
12                 echo "router='$router'"
13         } >&9;;
14 leasefail)      # ignore - probably no dhcp server
15         :;;
16 *)      echo "udhcpc: $*: command not recognised" >&2;;
17 esac