summaryrefslogtreecommitdiff
path: root/packages/openslug-init/openslug-init-0.10/boot
diff options
context:
space:
mode:
authorRod Whitby <rod@whitby.id.au>2006-01-07 08:58:44 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-01-07 08:58:44 +0000
commit8fb6b2d3d410ad2badf0c99ed7a66b698aafaa17 (patch)
tree8a700d795bdf33061b8bccc353fe0aaffa044036 /packages/openslug-init/openslug-init-0.10/boot
parent0b67482ddc4fe571d16fa094627abb447b9a8edb (diff)
slugos: Major rename of common SlugOS files and directories from openslug to slugos.
Diffstat (limited to 'packages/openslug-init/openslug-init-0.10/boot')
-rw-r--r--packages/openslug-init/openslug-init-0.10/boot/.mtn2git_empty0
-rwxr-xr-xpackages/openslug-init/openslug-init-0.10/boot/disk49
-rwxr-xr-xpackages/openslug-init/openslug-init-0.10/boot/flash14
-rwxr-xr-xpackages/openslug-init/openslug-init-0.10/boot/network25
-rwxr-xr-xpackages/openslug-init/openslug-init-0.10/boot/nfs17
-rwxr-xr-xpackages/openslug-init/openslug-init-0.10/boot/ram47
-rwxr-xr-xpackages/openslug-init/openslug-init-0.10/boot/udhcpc.script17
7 files changed, 0 insertions, 169 deletions
diff --git a/packages/openslug-init/openslug-init-0.10/boot/.mtn2git_empty b/packages/openslug-init/openslug-init-0.10/boot/.mtn2git_empty
deleted file mode 100644
index e69de29bb2..0000000000
--- a/packages/openslug-init/openslug-init-0.10/boot/.mtn2git_empty
+++ /dev/null
diff --git a/packages/openslug-init/openslug-init-0.10/boot/disk b/packages/openslug-init/openslug-init-0.10/boot/disk
deleted file mode 100755
index ede33a3ee6..0000000000
--- a/packages/openslug-init/openslug-init-0.10/boot/disk
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/sh
-# boot from the hard disk partition "$1" (which
-# must be given) using options from the rest of
-# the command line.
-#
-/sbin/leds -A '!gr'
-#
-# Use the standard init path (see /etc/init.d/rcS)
-export PATH=/sbin:/bin:/usr/sbin:/usr/bin
-#
-# Load the helper functions
-. /etc/default/functions
-#
-if test -n "$1"
-then
- device="$1"
- shift
- echo "boot: rootfs: mount $* $device"
- #
- # wait if required
- test "$sleep" -gt 0 && sleep "$sleep"
- #
- # Mount read-write because before exec'ing init
- # this script creates the '.recovery' link to
- # detect failed boot. No file type is given to
- if mount "$@" "$device" /mnt
- then
- # checkmount checks for sh, init and no
- # .recovery plus either mnt or initrd
- if checkmount /mnt && :>/mnt/.recovery
- then
- # sync to ensure .recovery is written
- sync
- # pivot to /initrd if available, else /mnt
- cd /
- if test -d /mnt/initrd
- then
- swivel mnt initrd
- else
- swivel mnt mnt
- fi
- # swivel failed
- fi
- # Failure: unmount the partition
- umount /mnt
- fi
-fi
-# fallback - use the flash boot
-exec /boot/flash
diff --git a/packages/openslug-init/openslug-init-0.10/boot/flash b/packages/openslug-init/openslug-init-0.10/boot/flash
deleted file mode 100755
index e0bcebc9b8..0000000000
--- a/packages/openslug-init/openslug-init-0.10/boot/flash
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-# boot from the current (flash) root partition
-# nothing need be done, make the power led flash
-# amber to indicate runlevel S
-/sbin/leds -A '!gr'
-exec /sbin/init
-# fallback if /sbin/init has been deleted (bad!)
-# flashing amber/red - failed early boot
-# disk lights flashing: failed in flash boot!
-/sbin/leds +A '!g12'
-exec <>/dev/console >&0 2>&0
-exec /sbin/sulogin
-exec /bin/sh
-exit 1
diff --git a/packages/openslug-init/openslug-init-0.10/boot/network b/packages/openslug-init/openslug-init-0.10/boot/network
deleted file mode 100755
index 02b226d1f3..0000000000
--- a/packages/openslug-init/openslug-init-0.10/boot/network
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-# bring up the network before boot, used to allow
-# netconsole logging and NFS boot. This runs out
-# of flash, but that's ok because the script doesn't
-# leave any process running.
-#
-# NOTE: /etc/default/functions defines ifup as a shell
-# function!
-. /etc/default/functions
-#
-# Now all the information for booting should be in the configuration
-# file. Config the loopback and network interfaces.
-ifconfig lo 127.0.0.1 up
-mac="$(config mac)"
-iface="$(config iface)"
-if test -n "$mac" -a -n "$iface" -a "$mac" != "00:00:00:00:00:00" -a "$mac" != "FF:FF:FF:FF:FF:FF"
-then
- if ifconfig "$iface" hw ether "$mac" &&
- ifup "$iface"
- then
- exit 0
- fi
-fi
-# exit code is true only if the interface config has succeeded
-exit 1
diff --git a/packages/openslug-init/openslug-init-0.10/boot/nfs b/packages/openslug-init/openslug-init-0.10/boot/nfs
deleted file mode 100755
index 534d8b7cb0..0000000000
--- a/packages/openslug-init/openslug-init-0.10/boot/nfs
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-# boot from the nfs partition "$1" (which
-# must be given) using options from the rest of
-# the command line.
-#
-/sbin/leds -A '!gr'
-#
-# Use the standard init path (see /etc/init.d/rcS)
-export PATH=/sbin:/bin:/usr/sbin:/usr/bin
-if /boot/network
-then
- # network is up and running, the NFS mount will
- # now succeed (possibly), use /boot/disk
- exec /boot/disk "$@"
-fi
-# fallback - use the flash boot
-exec /boot/flash
diff --git a/packages/openslug-init/openslug-init-0.10/boot/ram b/packages/openslug-init/openslug-init-0.10/boot/ram
deleted file mode 100755
index 66d46a7089..0000000000
--- a/packages/openslug-init/openslug-init-0.10/boot/ram
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/bin/sh
-# boot from the hard disk partition "$1" (which
-# must be given) using options from the rest of
-# the command line.
-#
-/sbin/leds -A '!gr'
-#
-# Use the standard init path (see /etc/init.d/rcS)
-export PATH=/sbin:/bin:/usr/sbin:/usr/bin
-#
-# Load the helper functions
-. /etc/default/functions
-#
-if test -n "$1"
-then
- device="$1"
- shift
- echo "boot: rootfs: mount $* $device"
- #
- # prepare the device. This uses tmpfs to avoid dependency
- # on non-built-in file systems and because tmpfs can expand
- # to bigger than the 10MByte ram0 partition used before.
- # The 'device' is currently unused.
- if mount -t tmpfs "$@" tmpfs /mnt
- then
- cd /
- # filter out boot (with zimage), linuxrc and anything
- # below /var, keep dev or the boot will fail (note that
- # nothing is mounted this early in the bootstrap).
- find . -mount -print |
- sed '\@^./boot/@d;\@^./boot$@d;\@^./linuxrc@d;\@^./var/@d' |
- cpio -p -d -m -u /mnt
- # checkmount checks for sh, init and no .recovery plus
- # either mnt or initrd, mnt must exist!
- if checkmount /mnt
- then
- # pivot to /mnt
- cd /
- swivel mnt mnt
- # swivel failed
- fi
- # Failure: unmount the partition.
- umount /mnt
- fi
-fi
-# fallback - use the flash boot
-exec /boot/flash
diff --git a/packages/openslug-init/openslug-init-0.10/boot/udhcpc.script b/packages/openslug-init/openslug-init-0.10/boot/udhcpc.script
deleted file mode 100755
index 3f437e3143..0000000000
--- a/packages/openslug-init/openslug-init-0.10/boot/udhcpc.script
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/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