summaryrefslogtreecommitdiff
path: root/packages/altboot/files
diff options
context:
space:
mode:
Diffstat (limited to 'packages/altboot/files')
-rw-r--r--packages/altboot/files/.mtn2git_empty0
-rw-r--r--packages/altboot/files/akita/.mtn2git_empty0
-rw-r--r--packages/altboot/files/akita/altboot-2.4.cfg31
-rw-r--r--packages/altboot/files/akita/altboot-2.6.cfg41
-rw-r--r--packages/altboot/files/altboot-menu/.mtn2git_empty0
-rw-r--r--packages/altboot/files/altboot-menu/00-Default14
-rw-r--r--packages/altboot/files/altboot-menu/10-noGui14
-rw-r--r--packages/altboot/files/altboot-menu/15-bootSD32
-rw-r--r--packages/altboot/files/altboot-menu/20-bootCF32
-rw-r--r--packages/altboot/files/altboot-menu/99-ownScripts-example68
-rw-r--r--packages/altboot/files/altboot-menu/Advanced/.mtn2git_empty0
-rw-r--r--packages/altboot/files/altboot-menu/Advanced/30-bootUSB-Stick47
-rw-r--r--packages/altboot/files/altboot-menu/Advanced/40-bootNFS110
-rw-r--r--packages/altboot/files/altboot-menu/Advanced/55-bin-sh27
-rw-r--r--packages/altboot/files/altboot-menu/Advanced/60-orig-init20
-rw-r--r--packages/altboot/files/altboot-menu/Advanced/70-install-tgz264
-rw-r--r--packages/altboot/files/altboot-menu/Advanced/70-setKernel68
-rw-r--r--packages/altboot/files/altboot-menu/Advanced/80-configure-kexec248
-rw-r--r--packages/altboot/files/altboot-menu/Advanced/80-copyrootfs323
-rw-r--r--packages/altboot/files/altboot.func828
-rw-r--r--packages/altboot/files/altboot.rc/.mtn2git_empty0
-rw-r--r--packages/altboot/files/altboot.rc/Readme.txt2
-rw-r--r--packages/altboot/files/altboot.rc/disable_printk.sh6
-rw-r--r--packages/altboot/files/altboot.rc/loadkeymap.sh8
-rw-r--r--packages/altboot/files/altboot.rc/playbeep.sh34
-rwxr-xr-xpackages/altboot/files/altbootctl311
-rw-r--r--packages/altboot/files/altbootctl.conf98
-rw-r--r--packages/altboot/files/beep.raw1
-rw-r--r--packages/altboot/files/c7x0/.mtn2git_empty0
-rw-r--r--packages/altboot/files/c7x0/altboot-2.4.cfg30
-rw-r--r--packages/altboot/files/c7x0/altboot-2.6.cfg39
-rw-r--r--packages/altboot/files/collie/.mtn2git_empty0
-rw-r--r--packages/altboot/files/collie/altboot-2.4.cfg26
-rw-r--r--packages/altboot/files/init.altboot504
-rw-r--r--packages/altboot/files/poodle/.mtn2git_empty0
-rw-r--r--packages/altboot/files/poodle/altboot-2.4.cfg26
-rw-r--r--packages/altboot/files/poodle/altboot-2.6.cfg45
-rw-r--r--packages/altboot/files/spitz/.mtn2git_empty0
-rw-r--r--packages/altboot/files/spitz/altboot-2.6.cfg41
-rw-r--r--packages/altboot/files/tosa/.mtn2git_empty0
-rw-r--r--packages/altboot/files/tosa/altboot-2.4.cfg32
-rw-r--r--packages/altboot/files/tosa/altboot-2.6.cfg41
42 files changed, 0 insertions, 3411 deletions
diff --git a/packages/altboot/files/.mtn2git_empty b/packages/altboot/files/.mtn2git_empty
deleted file mode 100644
index e69de29bb2..0000000000
--- a/packages/altboot/files/.mtn2git_empty
+++ /dev/null
diff --git a/packages/altboot/files/akita/.mtn2git_empty b/packages/altboot/files/akita/.mtn2git_empty
deleted file mode 100644
index e69de29bb2..0000000000
--- a/packages/altboot/files/akita/.mtn2git_empty
+++ /dev/null
diff --git a/packages/altboot/files/akita/altboot-2.4.cfg b/packages/altboot/files/akita/altboot-2.4.cfg
deleted file mode 100644
index 4ea84ce32d..0000000000
--- a/packages/altboot/files/akita/altboot-2.4.cfg
+++ /dev/null
@@ -1,31 +0,0 @@
-#
-# Altboot machine configuration for: Akita / Kernel 2.4
-#
-
-# Handled by /sbin/init.altboot
-# Allow booting images from SD or CF instead of booting
-# the ROM.
-ENABLE_ALTBOOT="yes"
-TIMEOUT="4"
-REAL_INIT="/sbin/init.sysvinit"
-SH_SHELL="/bin/sh"
-
-IMAGE_PATH="boot-images"
-IMAGE_TYPE="ext2"
-FSCK_IMAGES="yes"
-
-SD_DEVICE="/dev/mmcda1"
-SD_KERNEL_MODULE="/lib/modules/2.4.20/kernel/drivers/block/sharp_mmcsd_m.o"
-
-USB_HOST_AVAILABLE="yes"
-USB_STORAGE_MODULES="usb_ohci_pxa27x usb-storage"
-USB_STORAGE_PARTITION="/dev/sda1"
-USB_STORAGE_WAIT="4"
-
-INIT_RUNLEVEL="5"
-NO_GUI_RL="2"
-MASTER_PASSWORD=""
-ASK_PW_ON_BOOT="no"
-
-SD_MOUNTPOINT="/media/card"
-CF_MOUNTPOINT="/media/cf"
diff --git a/packages/altboot/files/akita/altboot-2.6.cfg b/packages/altboot/files/akita/altboot-2.6.cfg
deleted file mode 100644
index 62e8ea2434..0000000000
--- a/packages/altboot/files/akita/altboot-2.6.cfg
+++ /dev/null
@@ -1,41 +0,0 @@
-#
-# Altboot machine configuration for: Akita / Kernel 2.6
-#
-
-# Handled by /sbin/init.altboot
-# Allow booting images from SD or CF instead of booting
-# the ROM.
-ENABLE_ALTBOOT="yes"
-TIMEOUT="4"
-REAL_INIT="/sbin/init.sysvinit"
-SH_SHELL="/bin/sh"
-
-ENABLE_SOUND="yes"
-
-IMAGE_PATH="boot-images"
-IMAGE_TYPE="ext2"
-FSCK_IMAGES="yes"
-ENABLE_IMAGECONF="yes"
-
-SD_DEVICE="/dev/mmcblk0p1"
-SD_KERNEL_MODULE=""
-
-USB_HOST_AVAILABLE="yes"
-USB_STORAGE_MODULES="ohci_hcd usb_storage sd_mod"
-USB_STORAGE_PARTITION="/dev/sda1"
-USB_STORAGE_WAIT="4"
-
-USB_NETWORKING_AVAILABLE="yes"
-USB_NW_MODULES="usbcore pxa27x_udc ohci-hcd g_ether"
-USB_NW_DEVICE="usb0"
-
-KEXEC_KERNEL_DIR="/boot"
-KEXEC_BIN="/usr/sbin/kexec"
-
-INIT_RUNLEVEL="5"
-NO_GUI_RL="2"
-MASTER_PASSWORD=""
-ASK_PW_ON_BOOT="no"
-
-SD_MOUNTPOINT="/media/card"
-CF_MOUNTPOINT="/media/cf"
diff --git a/packages/altboot/files/altboot-menu/.mtn2git_empty b/packages/altboot/files/altboot-menu/.mtn2git_empty
deleted file mode 100644
index e69de29bb2..0000000000
--- a/packages/altboot/files/altboot-menu/.mtn2git_empty
+++ /dev/null
diff --git a/packages/altboot/files/altboot-menu/00-Default b/packages/altboot/files/altboot-menu/00-Default
deleted file mode 100644
index 9d29fdae2a..0000000000
--- a/packages/altboot/files/altboot-menu/00-Default
+++ /dev/null
@@ -1,14 +0,0 @@
-# !/bin/sh
-M_TITLE="Normal Boot"
-
-
-run_module() {
- exec $REAL_INIT "$INIT_RUNLEVEL"
- exit 0
-}
-
-case "$1" in
-title) echo "$M_TITLE";;
-run) run_module;;
-esac
-
diff --git a/packages/altboot/files/altboot-menu/10-noGui b/packages/altboot/files/altboot-menu/10-noGui
deleted file mode 100644
index 57141d498d..0000000000
--- a/packages/altboot/files/altboot-menu/10-noGui
+++ /dev/null
@@ -1,14 +0,0 @@
-# !/bin/sh
-M_TITLE="Don't launch GUI"
-
-
-run_module() {
- clear ; exec $REAL_INIT "$NO_GUI_RL"
- exit 0
-}
-
-case "$1" in
-title) echo "$M_TITLE";;
-run) run_module;;
-esac
-
diff --git a/packages/altboot/files/altboot-menu/15-bootSD b/packages/altboot/files/altboot-menu/15-bootSD
deleted file mode 100644
index 3cf49deea5..0000000000
--- a/packages/altboot/files/altboot-menu/15-bootSD
+++ /dev/null
@@ -1,32 +0,0 @@
-# !/bin/sh
-#
-# Copyright Matthias Hentges (c) 2005
-#
-# License: GPL (see http://www.gnu.org/licenses/gpl.txt for a copy of the GPL)
-
-
-M_TITLE="Boot SD card"
-
-test "$DISABLE_SD_BOOT" = yes && exit 0
-
-# This function is activated by init.altboot by calling this script with the "run" option
-run_module() {
-
- test -e /etc/altboot.func && . /etc/altboot.func || die "ERROR: /etc/altboot.func not found. Check your installation!"
-
- # Mount /proc, etc
- init_rootfs
-
- mount_sd
-
- # Check for a real fs and loop-images.
- check_target "$SD_MOUNTPOINT" >/dev/tty0
-
-}
-
-
-case "$1" in
-title) echo "$M_TITLE";;
-run) run_module "$2";;
-esac
-
diff --git a/packages/altboot/files/altboot-menu/20-bootCF b/packages/altboot/files/altboot-menu/20-bootCF
deleted file mode 100644
index 4add6e6631..0000000000
--- a/packages/altboot/files/altboot-menu/20-bootCF
+++ /dev/null
@@ -1,32 +0,0 @@
-# !/bin/sh
-#
-# Copyright Matthias Hentges (c) 2005
-#
-# License: GPL (see http://www.gnu.org/licenses/gpl.txt for a copy of the GPL)
-
-
-M_TITLE="Boot CF card"
-
-test "$DISABLE_CF_BOOT" = yes && exit 0
-
-# This function is activated by init.altboot by calling this script with the "run" option
-run_module() {
-
- test -e /etc/altboot.func && . /etc/altboot.func || die "ERROR: /etc/altboot.func not found. Check your installation!"
-
- # Mount /proc, etc
- init_rootfs
-
- mount_cf
-
- # Check for a real fs and loop-images.
- check_target "$CF_MOUNTPOINT"
-
-}
-
-
-case "$1" in
-title) echo "$M_TITLE";;
-run) run_module "$2";;
-esac
-
diff --git a/packages/altboot/files/altboot-menu/99-ownScripts-example b/packages/altboot/files/altboot-menu/99-ownScripts-example
deleted file mode 100644
index 7566416b87..0000000000
--- a/packages/altboot/files/altboot-menu/99-ownScripts-example
+++ /dev/null
@@ -1,68 +0,0 @@
-# !/bin/sh
-#
-# Copyright Matthias Hentges (c) 2005
-#
-# License: GPL (see http://www.gnu.org/licenses/gpl.txt for a copy of the GPL)
-
-
-# This file will teach you how to implement your own scripts while using existing altboot
-# code.
-
-# /sbin/init.altboot searches /etc/altboot-menu for scripts. It will only list scripts which
-# return a title when run with the "title" parameter.
-# Script which do not return a title will never be shown in the boot menu!
-#
-M_TITLE="altboot sample"
-
-# We can use that to deactivate certain scripts:
-exit 0
-
-# The "title" parameter is implemented at the end of this script so it will never be reached
-# and the script will simply be ignored by altboot.
-
-# This function is activated by init.altboot by calling this script with the "run" option
-run_module() {
-
- # altboot.func contains re-useable code. If you intend to use check_target (see below)
- # you must keep this line. If not, delete it.
- test -e /etc/altboot.func && . /etc/altboot.func || die "ERROR: /etc/altboot.func not found. Check your installation!"
-
-
- # The only thing you'll have to do is get your medium mounted.
- # The following lines mount a SD card on 2.4-series kernels on a Zaurus
-
- ##########################################
-
- # Mount /proc, etc
- init_rootfs
-
- echo -n "Loading SD kernel module..."
- /sbin/insmod $SD_KERNEL_MODULE >/dev/null 2>&1 && echo ok || die "insmod failed"
-
- echo -n "Mounting $SD_MOUNTPOINT..." >/dev/tty0
- /bin/mount -t auto -o defaults,noatime $SD_DEVICE $SD_MOUNTPOINT >/dev/null 2>&1 && echo ok >/dev/tty0|| die "/bin/mount -t auto -o defaults,noatime $SD_DEVICE $SD_MOUNTPOINT failed"
-
- echo ""
-
- # Give the SD and CF mounting some time. This is a must for SD
- sleep 2
- ##########################################
-
- # Once the medium (be it a CF or SD card, or even a NFS drive) is mounted somewhere,
- # just call check_target with the mountpoint as parameter.
- # check_target searches the medium for a real filesystem and loop-images and
- # asks the user what to boot if there are several choices.
-
- # Check for a real fs and loop-images.
- check_target "$SD_MOUNTPOINT" >/dev/tty0
-
- # Done :)
-
-}
-
-
-case "$1" in
-title) echo "$M_TITLE";;
-run) run_module "$2";;
-esac
-
diff --git a/packages/altboot/files/altboot-menu/Advanced/.mtn2git_empty b/packages/altboot/files/altboot-menu/Advanced/.mtn2git_empty
deleted file mode 100644
index e69de29bb2..0000000000
--- a/packages/altboot/files/altboot-menu/Advanced/.mtn2git_empty
+++ /dev/null
diff --git a/packages/altboot/files/altboot-menu/Advanced/30-bootUSB-Stick b/packages/altboot/files/altboot-menu/Advanced/30-bootUSB-Stick
deleted file mode 100644
index b573e7a10c..0000000000
--- a/packages/altboot/files/altboot-menu/Advanced/30-bootUSB-Stick
+++ /dev/null
@@ -1,47 +0,0 @@
-# !/bin/sh
-#
-# Copyright Matthias Hentges (c) 2005
-#
-# License: GPL (see http://www.gnu.org/licenses/gpl.txt for a copy of the GPL)
-
-
-M_TITLE="Boot USB Storage"
-
-test "$USB_HOST_AVAILABLE" = "yes" || exit 0
-
-# This function is activated by init.altboot by calling this script with the "run" option
-run_module() {
-
- test -e /etc/altboot.func && . /etc/altboot.func || die "ERROR: /etc/altboot.func not found. Check your installation!"
-
- # Mount /proc, etc
- init_rootfs
-
- echo "Starting USB..."
-
- for module in $USB_STORAGE_MODULES
- do
- echo -en "\t - $module: "
- modprobe "$module" >/dev/null 2>&1 && echo ok || die "Failed to modprobe [$module]"
- done
-
- echo -n "Mounting $USB_STORAGE_PARTITION..." >/dev/tty0
-
- mkdir -p /media/usb-storage >/dev/null 2>&1
-
- sleep "$USB_STORAGE_WAIT"
-
- /bin/mount -t auto -o defaults,noatime $USB_STORAGE_PARTITION /media/usb-storage >/dev/null 2>&1 && echo ok >/dev/tty0|| die "/bin/mount -t auto -o defaults,noatime $SD_DEVICE $SD_MOUNTPOINT failed"
-
- echo ""
-
- # Check for a real fs and loop-images.
- check_target "/media/usb-storage" >/dev/tty0
-}
-
-
-case "$1" in
-title) echo "$M_TITLE";;
-run) run_module "$2";;
-esac
-
diff --git a/packages/altboot/files/altboot-menu/Advanced/40-bootNFS b/packages/altboot/files/altboot-menu/Advanced/40-bootNFS
deleted file mode 100644
index 4f5c195be2..0000000000
--- a/packages/altboot/files/altboot-menu/Advanced/40-bootNFS
+++ /dev/null
@@ -1,110 +0,0 @@
-#! /bin/sh
-#
-# Copyright Matthias Hentges <devel@hentges.net> (c) 2006
-# License: GPL (see http://www.gnu.org/licenses/gpl.txt for a copy of the license)
-#
-# Filename: 40-bootNFS
-# Date: 14-Apr-06
-
-
-M_TITLE="Boot from NFS"
-
-test "$DISABLE_NFS_BOOT" = yes && exit 0
-
-# This function is activated by init.altboot by calling this script with the "run" option
-run_module() {
-
- test -e /etc/altboot.func && . /etc/altboot.func || die "ERROR: /etc/altboot.func not found. Check your installation!"
-
- # Mount /proc, etc
- init_rootfs
-
- nfs_host="`cat /etc/fstab | grep -v ^# | grep nfs | awk '{print $1}'|sed -n "s/\(.*\)\:\(.*\)/\1/p" `"
- nfs_mounts="`cat /etc/fstab | grep -v ^# | grep nfs | awk '{print $1}'`"
- nfs_mountpoints="`cat /etc/fstab | grep -v ^# | grep nfs | awk '{print $2}'`"
-
- start_networking "$nfs_host"
-
- if test -z "$nfs_host"
- then
- mdie "${C_RED}No configured NFS drives found in /etc/fstab$C_RESET"
-
- fi
-
-
- if test "` echo "$nfs_mountpoints" |wc -l | tr -d " "`" -gt 1
- then
- echo -e "Please select your NFS root:\n"
-
- cnt=1
- for nfs_mount in $nfs_mountpoints
- do
- echo -e "\t[$cnt] $nfs_mount"
- let cnt=$cnt+1
- done
-
- echo ""
-
- while test -z "$selection"
- do
- stty echo
- echo -n "Boot NFS root: "
-
- if test "$AUTOBOOT" != "yes"
- then
- read junk < /dev/tty1
- else
- if test -e /etc/.altboot-bootNFS-source.last
- then
- junk="`cat /etc/.altboot-bootNFS-source.last`"
- test -z "$junk" && read junk < /dev/tty1 || echo "$junk (autoboot)"
- else
- read junk < /dev/tty1
- fi
- fi
-
-
- cnt=1
- for nfs_mount in $nfs_mounts
- do
- if test "$junk" = "$cnt"
- then
- selection="$nfs_mount"
- echo "$junk" > /etc/.altboot-bootNFS-source.last
- fi
- let cnt=$cnt+1
- done
-
- done
- else
- test -z "$nfs_mounts" && die "No NFS mounts configured in /etc/fstab!"
- selection="$nfs_mounts"
- fi
-
- mkdir -p /media/nfsroot || mdie "mkdir -p /media/nfsroot failed!"
-
- echo -n "Mounting NFS root..."
-
- if ( mount | grep -q "/media/nfsroot" )
- then
- echo "/media/nfsroot already used, tying to umount..."
- umount /media/image
- losetup -d /dev/loop0
- umount /media/nfsroot || die "umount failed!"
- fi
-
- mount -t nfs "$selection" /media/nfsroot && echo ok || mdie "mount -t nfs "$selection" /media/nfsroot failed!"
-
- # Use configured resolv.conf in the pivoted rootfs
- #echo -n "Copying resolv.conf..."
- #cp /etc/resolv.conf /media/nfsroot/etc && echo ok || echo "FAILED"
-
- check_target "/media/nfsroot" bootNFS
-
-}
-
-case "$1" in
-title) echo "$M_TITLE";;
-run) run_module "$2";;
-esac
-
diff --git a/packages/altboot/files/altboot-menu/Advanced/55-bin-sh b/packages/altboot/files/altboot-menu/Advanced/55-bin-sh
deleted file mode 100644
index 6c9aef3f3e..0000000000
--- a/packages/altboot/files/altboot-menu/Advanced/55-bin-sh
+++ /dev/null
@@ -1,27 +0,0 @@
-# !/bin/sh
-M_TITLE="init=/bin/sh"
-
-test "$DISABLE_BINSH_BOOT" = yes && exit 0
-
-run_module() {
-
- test -e /etc/altboot.func && . /etc/altboot.func || die "ERROR: /etc/altboot.func not found. Check your installation!"
-
- test "$ASK_PW_ON_BOOT" != "yes" && verify_master_pw >/dev/tty0
-
- # Mount /proc, etc
- init_rootfs
-
- echo -e "\nBoot system with 'exec /sbin/init 5'\n"
- while true
- do
- exec $SH_SHELL </dev/tty0 >/dev/tty0 2>&1
- echo "WARNING: Shell was killed!"
- done
-}
-
-case "$1" in
-title) echo "$M_TITLE";;
-run) run_module;;
-esac
-
diff --git a/packages/altboot/files/altboot-menu/Advanced/60-orig-init b/packages/altboot/files/altboot-menu/Advanced/60-orig-init
deleted file mode 100644
index ad9f2c78e1..0000000000
--- a/packages/altboot/files/altboot-menu/Advanced/60-orig-init
+++ /dev/null
@@ -1,20 +0,0 @@
-# !/bin/sh
-M_TITLE="Boot original INIT"
-
-exit 0
-
-run_module() {
-
- test -e /etc/altboot.func && . /etc/altboot.func || die "ERROR: /etc/altboot.func not found. Check your installation!"
-
- echo "altboot: Using real init [$REAL_INIT] [$INIT_RUNLEVEL] *" >/dev/tty1
- exec $REAL_INIT $INIT_RUNLEVEL
- exit 0
-
-}
-
-case "$1" in
-title) echo "$M_TITLE";;
-run) run_module;;
-esac
-
diff --git a/packages/altboot/files/altboot-menu/Advanced/70-install-tgz b/packages/altboot/files/altboot-menu/Advanced/70-install-tgz
deleted file mode 100644
index aca0d047c6..0000000000
--- a/packages/altboot/files/altboot-menu/Advanced/70-install-tgz
+++ /dev/null
@@ -1,264 +0,0 @@
-#!/bin/sh
-M_TITLE="Install RootFS from tar.gz"
-M_FLAGS="noRemember"
-
-run_module(){
- test -e /etc/altboot.func && . /etc/altboot.func || die "ERROR: /etc/altboot.func not found. Check your installation!"
-
- # Mount /proc, etc
- init_rootfs
-
- # Mount
- mount_sd ingore_errors
- mount_cf
- mount_home
-
- for source in /home /media/card /media/cf
- do
- #echo "source: [$source]"
- rootfs_files="`ls -1 $source | grep "rootfs.tar.gz"`"
-
- #echo "rootfs_file: [$rootfs_files]"
- if test "`echo "$rootfs_files" | wc -l | tr -d " "`" -gt 1
- then
- echo "Multiple rootfs files not supported, yet"
- else
- if test -n "$rootfs_files"
- then
- rootfs_source="$source/$rootfs_files"
- echo "Using [$rootfs_source]"
- break
- fi
- fi
- done
-
- test -z "$rootfs_source" && die "No rootfs.tar.gz found"
-
- echo -e "\nPlease choose the target of this installation:\n"
-
- echo -e "\t [1] SD / MMC"
- echo -e "\t [2] Compact Flash"
-
- echo ""
- while true
- do
- echo -n "Your target: "
- read junk
-
- case "$junk" in
- 1) if (mount | grep -q "/media/card ")
- then
- rootfs_target="/media/card"; break
- else
- echo -e "\nInstallation target [/media/card] not mounted\n"
- fi ;;
- 2) if (mount | grep -q "/media/cf ")
- then
- rootfs_target="/media/cf"; break
- else
- echo -e "\nInstallation target [/media/cf] not mounted\n"
- fi ;;
- esac
- done
-
- echo -e "\nPlease choose the type of this installation:\n"
-
- echo -e "\t [1] Imagefile (loopfile)"
- echo -e "\t [2] Direct Install"
-
- echo ""
- while true
- do
- echo -n "Install type: "
- read junk
-
- case "$junk" in
- 1) if test -x /sbin/mkfs.ext2
- then
- rootfs_type="image"
- break
- else
- echo -e "\nNOTE: mkfs.ext2 (from e2fsprogs-mke2fs) not found, loop-images not supported\n"
- fi ;;
- 2) rootfs_type="direct" ; break ;;
- esac
- done
-
- case "$rootfs_type" in
- image) install_rootfs_image "$rootfs_target";;
- direct) install_rootfs_direct "$rootfs_target";;
- esac
-}
-
-clear_directories(){
- test "$1" = "/" -o "$1" = "/ " && die "clear_directories(): You don't want to do that."
-
- ! test -d "$1" && die "clear_directories(): [$1] not found."
-
- for d in bin dev media proc sys usr boot etc lib mnt sbin tmp var
- do
- if test -d "$1/$d"
- then
- echo "Removing [$1/$d]..."
- rm -rf "$1/$d"
- fi
- done
-
-}
-
-
-install_rootfs_direct(){
-
- mount | grep -q "$1 " || die "Installation target [$1] not mounted"
-
- echo -e "Do you want to remove existing directories from [$1]\n before installing the new rootfs?"
- echo ""
-
- while true
- do
- echo -n "Remove old directories? [Y|n] "
- read junk </dev/tty0 >/dev/tty0 2>&1
-
- case "$junk" in
- Y|y|"") clear_directories "$1"; break ;;
- esac
- done
-
- echo "Please press <ENTER> to begin the installation"
- read junk </dev/tty0 >/dev/tty0 2>&1
-
- test -d "$1" || die "Directory [$1] not found"
-
- echo -n "Installing rootfs, please wait..."
- tar -xzf "$rootfs_source" -C "$1" >/dev/null 2>&1 && echo ok || die "tar -xzf \"$rootfs_source\" -C \"$1\" failed!"
-
- echo -n "Syncing drives..."
- sync
- echo "done"
-
-# umount "$1"
-
- echo "Press <ENTER> to bring up the altboot menu"
- read junk </dev/tty0 >/dev/tty0 2>&1
- exec /sbin/init.altboot -force
-
-}
-
-install_rootfs_image(){
-
- mount | grep -q "$1 " || die "Installation target [$1] not mounted"
-
- echo ""
- echo "Please enter a name for the image file."
- echo "Do not use the <space> character"
- echo ""
-
-
- while true
- do
- echo -n "Image name: "
- read junk
-
- if test -n "$junk"
- then
- if test -e "$1/boot-images/${junk}-rootfs.bin"
- then
- echo -e "\nFile [$1/boot-images/${junk}-rootfs.bin] already exists."
-
- while true
- do
- echo -n "Overwrite? [y|N] "
- read junk2
-
- case "$junk2" in
- Y|y) break;;
- n|N|"") install_rootfs_image "$1"
- exit 0;;
- esac
- done
- rootfs_image_name="${junk}-rootfs.bin"
- break
- else
- echo -n "Use [$junk] as name? [Y|n] "
- read junk2
-
- case "$junk2" in
- "Y"|"y"|"") rootfs_image_name="${junk}-rootfs.bin"
- break ;;
- *) echo "err ]$junk]";;
- esac
- fi
- fi
- done
-
- echo ""
- echo "Please enter the image size in MegaBytes"
- echo "Must be at least 30Mb"
- echo ""
-
- while true
- do
- echo -n "Image size: "
- read junk
-
- junk="`echo "$junk" | sed "s/[a-zA-Z]//g"`"
-
- if test -n "$junk"
- then
- if test "$junk" -gt 29
- then
- echo -n "Is [${junk}Mb] correct? [Y|n] "
- read junk2
-
- case "$junk2" in
- Y|y|"") rootfs_image_size="$junk"
- break ;;
- esac
-
- else
- echo "Image size of [${junk}Mb] is too small!"
- fi
- fi
- done
-
- test -z "$rootfs_image_name" -o -z "$rootfs_image_size" && die "DEBUG: Empty VAR in install_rootfs_image()"
-
- echo ""
- echo "Creating [$rootfs_image_name] (${rootfs_image_size}Mb) on [$1]"
- echo "Please wait..."
- mkdir -p "$1/boot-images"
-
- dd if=/dev/zero of="$1/boot-images/$rootfs_image_name" bs=1024k count=$rootfs_image_size >/dev/null
-
- echo -n "Creating an ext2 filesystem on $rootfs_image_name..."
- losetup /dev/loop0 "$1/boot-images/$rootfs_image_name" || die "losetup /dev/loop0 \"$1/boot-images/$rootfs_image_name\" failed!"
- mkfs.ext2 -m0 /dev/loop0 >/dev/null 2>&1 && echo done || die "mkfs.ext2 -m0 /dev/loop0 failed!"
-
- echo -n "Mounting loopfile..."
- mkdir -p /media/image
- mount /dev/loop0 /media/image && echo ok || die "mount /dev/loop0 /media/image failed!"
-
- echo -n "Installing rootfs, please wait..."
- tar -xzf "$rootfs_source" -C "/media/image" >/dev/null 2>&1 && echo ok || die "tar -xzf \"$rootfs_source\" -C \"$1\" failed!"
-
- echo -n "Syncing drives..."
- sync
- echo "done"
-
- umount "/media/image" && losetup -d /dev/loop0
-
- echo "Press <ENTER> to bring up the altboot menu"
- read junk </dev/tty0 >/dev/tty0 2>&1
- exec /sbin/init.altboot -force
-
-}
-
-
-
-#run_module
-
-case "$1" in
-title) echo "$M_TITLE";;
-flags) echo "$M_FLAGS";;
-run) run_module "$2";;
-esac
diff --git a/packages/altboot/files/altboot-menu/Advanced/70-setKernel b/packages/altboot/files/altboot-menu/Advanced/70-setKernel
deleted file mode 100644
index 50f61d034f..0000000000
--- a/packages/altboot/files/altboot-menu/Advanced/70-setKernel
+++ /dev/null
@@ -1,68 +0,0 @@
-# !/bin/sh
-M_TITLE="Choose kernel for next boot"
-
-# Deprecated due to altbootctl
-exit 0
-
-# Only kernel 2.6 offers kexec support
-uname -r | grep -q "^2.6" || exit 0
-
-run_module() {
-
- test -e /etc/altboot.func && . /etc/altboot.func || die "ERROR: /etc/altboot.func not found. Check your installation!"
-
- test -z "$KEXEC_KERNEL_DIR" && KEXEC_KERNEL_DIR="/boot"
- test -x "$KEXEC_BIN" || mdie "kexec-tools not found [$KEXEC_BIN]"
-
- # Mount /proc, et