diff options
| author | Marty Connor | 2010-01-17 03:47:39 +0100 |
|---|---|---|
| committer | Marty Connor | 2010-01-17 03:47:39 +0100 |
| commit | 330abebddf67ab27998f64070f27d5874cbc7b06 (patch) | |
| tree | 08f5954725930ee9c38b0afab4cb9a30c71ce7e3 /contrib/initrd/udhcpc-post | |
| parent | [sanboot] Prevent leaking a stack reference for "keep-san" AoE (diff) | |
| download | ipxe-330abebddf67ab27998f64070f27d5874cbc7b06.tar.gz ipxe-330abebddf67ab27998f64070f27d5874cbc7b06.tar.xz ipxe-330abebddf67ab27998f64070f27d5874cbc7b06.zip | |
[contrib] Move most contrib content to a separate repository
Most of the content that was previously in this directory has been
moved to a separate git repository:
http://git.etherboot.org/?p=contrib.git;a=summary
or the Etherboot Project wiki:
http://etherboot.org/
Diffstat (limited to 'contrib/initrd/udhcpc-post')
| -rw-r--r-- | contrib/initrd/udhcpc-post | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/contrib/initrd/udhcpc-post b/contrib/initrd/udhcpc-post deleted file mode 100644 index 395d6c591..000000000 --- a/contrib/initrd/udhcpc-post +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh -# $Id$ - -if [ "$1" = "deconfig" ]; then - ifconfig $interface 0.0.0.0 up -else if [ "$1" = "bound" ] ; then - echo UDHCPC: I am $ip [$hostname], booting from $serverid - [ -n "$hostname" ] && echo $hostname > /proc/sys/kernel/hostname - [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" - [ -n "$subnet" ] && NETMASK="netmask $subnet" - ifconfig $interface $ip $BROADCAST $NETMASK - route add default gw $router dev $interface - echo -n > /etc/resolv.conf - for i in $dns; do - echo nameserver $i >> /etc/resolv.conf - done - [ -n "$siaddr" ] || siaddr=$serverid - [ -n "$rootpath" ] || rootpath=$siaddr:/ - echo Mounting root filesystem $rootpath at /sysroot - echo If this appears to hang, check that the server of $rootpath is able to - echo reverse-map my IP address $ip to obtain my hostname $hostname - mount -t nfs -o nolock,rsize=8192,wsize=8192 $rootpath /sysroot - fi -fi - |
