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/linuxrc | |
| 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/linuxrc')
| -rw-r--r-- | contrib/initrd/linuxrc | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/contrib/initrd/linuxrc b/contrib/initrd/linuxrc deleted file mode 100644 index 24bdb0df8..000000000 --- a/contrib/initrd/linuxrc +++ /dev/null @@ -1,76 +0,0 @@ -#!/bin/sh -# $Id$ - -PATH=/sbin:/bin - -echo Busybox /linuxrc starting - -echo Mounting /proc filesystem -mount -t proc none /proc - -echo=echo -if grep '\bquiet\b' /proc/cmdline > /dev/null; then - echo=true - quiet=1 -fi - -$echo Creating root device -mknod /dev/root b 1 0 2>/dev/null -chmod 700 /dev/root -echo 0x100 > /proc/sys/kernel/real-root-dev - -$echo Inserting modules -if [ -z "$quiet" ]; then - /bin/insert-modules -else - /bin/insert-modules >/dev/null -fi - -$echo Bringing up loopback interface -ifconfig lo 127.0.0.1 up -route add -net 127.0.0.0 netmask 255.0.0.0 lo - -# Hack required for prism2 cards -# It is not yet possible to use iwconfig to configure these cards, -# so we need wlanctl. -if ifconfig wlan0 down 2> /dev/null; then - $echo Setting up wireless link - wlanctl wlan0 lnxreq_ifstate ifstate=enable - wlanctl wlan0 lnxreq_autojoin ssid= authtype=opensystem -fi - -$echo Obtaining IP address via DHCP -$echo Trying to obtain IP address via wired link [eth0] -if udhcpc -i eth0 -f -n -q -s /bin/udhcpc-post; then - $echo Successfully obtained IP address via wired link [eth0] -else - $echo Failed to obtain IP address via wired link [eth0] - $echo Trying to obtain IP address via wireless link [wlan0] - udhcpc -i wlan0 -f -n -q -s /bin/udhcpc-post -fi - -if [ -d /sysroot/initrd ]; then - $echo Unmounting /proc prior to pivot_root - umount /proc - - $echo Pivoting root to /sysroot - pivot_root /sysroot /sysroot/initrd - cd / - - $echo Remounting devfs at correct place - mount -t devfs none /dev - - $echo Releasing locks on old devfs - exec 0</dev/null - exec 1>/dev/console - exec 2>/dev/console - - $echo Unmounting old devfs - umount /initrd/dev -else - # Failed to mount root: report error and hang - echo FATAL ERROR: Failed to mount root filesystem - echo Press Alt-SysRq-B or hit the reset switch to reboot - while : ; do sleep 6000 ; done -fi - |
