summaryrefslogtreecommitdiff
path: root/source/installer/sources/initrd/bin
diff options
context:
space:
mode:
Diffstat (limited to 'source/installer/sources/initrd/bin')
-rwxr-xr-xsource/installer/sources/initrd/bin/bash2
l---------source/installer/sources/initrd/bin/compress1
l---------source/installer/sources/initrd/bin/egrep1
l---------source/installer/sources/initrd/bin/fgrep1
-rwxr-xr-xsource/installer/sources/initrd/bin/filesize6
l---------source/installer/sources/initrd/bin/grep1
-rwxr-xr-xsource/installer/sources/initrd/bin/network41
-rwxr-xr-xsource/installer/sources/initrd/bin/pcmcia29
-rwxr-xr-xsource/installer/sources/initrd/bin/zcat56
9 files changed, 138 insertions, 0 deletions
diff --git a/source/installer/sources/initrd/bin/bash b/source/installer/sources/initrd/bin/bash
new file mode 100755
index 00000000..f659f369
--- /dev/null
+++ b/source/installer/sources/initrd/bin/bash
@@ -0,0 +1,2 @@
+#!/bin/ash
+exec /bin/ash $*
diff --git a/source/installer/sources/initrd/bin/compress b/source/installer/sources/initrd/bin/compress
new file mode 120000
index 00000000..8483eff1
--- /dev/null
+++ b/source/installer/sources/initrd/bin/compress
@@ -0,0 +1 @@
+/usr/bin/compress \ No newline at end of file
diff --git a/source/installer/sources/initrd/bin/egrep b/source/installer/sources/initrd/bin/egrep
new file mode 120000
index 00000000..c45b35b7
--- /dev/null
+++ b/source/installer/sources/initrd/bin/egrep
@@ -0,0 +1 @@
+grep.bin \ No newline at end of file
diff --git a/source/installer/sources/initrd/bin/fgrep b/source/installer/sources/initrd/bin/fgrep
new file mode 120000
index 00000000..c45b35b7
--- /dev/null
+++ b/source/installer/sources/initrd/bin/fgrep
@@ -0,0 +1 @@
+grep.bin \ No newline at end of file
diff --git a/source/installer/sources/initrd/bin/filesize b/source/installer/sources/initrd/bin/filesize
new file mode 100755
index 00000000..4c537eda
--- /dev/null
+++ b/source/installer/sources/initrd/bin/filesize
@@ -0,0 +1,6 @@
+#!/bin/sh
+#
+# Print the size of a file, in bytes.
+#
+SIZE=`ls -l -d -G $1 | cut -b23-32`
+echo -n $SIZE
diff --git a/source/installer/sources/initrd/bin/grep b/source/installer/sources/initrd/bin/grep
new file mode 120000
index 00000000..c45b35b7
--- /dev/null
+++ b/source/installer/sources/initrd/bin/grep
@@ -0,0 +1 @@
+grep.bin \ No newline at end of file
diff --git a/source/installer/sources/initrd/bin/network b/source/installer/sources/initrd/bin/network
new file mode 100755
index 00000000..59637dd0
--- /dev/null
+++ b/source/installer/sources/initrd/bin/network
@@ -0,0 +1,41 @@
+#!/bin/sh
+# This script configures support for ethernet cards needed during
+# installation for an NFS install.
+#
+# Normally this automatically loads an image from the ISO, and if
+# it cannot be found tries to load a floppy disk.
+#
+# You may also give a path to the network.dsk image, like this:
+# network /some/exact/path/network.dsk
+#
+
+TMP=/var/log/setup/tmp
+mkdir -p $TMP/dhcpc
+
+echo
+echo "Network support for NFS install, 2006-09-20 volkerdi@slackware.com"
+echo "Network support for FTP/HTTP install, 26-Jan-2008 alien@slackware.com"
+echo
+
+# Now, let's call the network.sh script to actually do most of the work:
+
+if [ -r /scripts/network.sh ]; then
+ sh /scripts/network.sh
+fi
+
+# If we can get information from a local DHCP server, we store that for later:
+if ! grep -wq nodhcp /proc/cmdline ; then
+ for EDEV in $(cat /proc/net/dev | grep ':' | sed -e "s/^ *//" | cut -f1 -d: | grep -v lo) ; do
+ if grep -q `echo ${EDEV}: | cut -f 1 -d :`: /proc/net/wireless ; then
+ continue # skip wireless interfaces
+ fi
+ /sbin/dhcpcd -t 10 -T $EDEV 1>$TMP/dhcpc/dhcpcd-${EDEV}.info 2>/dev/null &
+ done
+fi
+
+echo
+echo "The next step in your installation may be partitioning your hard drive"
+echo "(if you're installing to a Linux partition) with 'fdisk' or 'cfdisk'"
+echo "(the menu-driven version of fdisk). If you already have a partition"
+echo "prepared for Linux, run 'setup' to start the installer program."
+echo
diff --git a/source/installer/sources/initrd/bin/pcmcia b/source/installer/sources/initrd/bin/pcmcia
new file mode 100755
index 00000000..b77503de
--- /dev/null
+++ b/source/installer/sources/initrd/bin/pcmcia
@@ -0,0 +1,29 @@
+#!/bin/sh
+# This script configures support for PCMCIA and/or Cardbus cards needed during
+# installation, such as a CD-ROM drive or an ethernet card used for an NFS
+# install.
+
+echo
+echo "PCMCIA/Cardbus support script, 2003-02-18 volkerdi@slackware.com"
+echo " 2007-05-09 alien@slackware.com"
+echo
+
+# OK, here goes nothing:
+/etc/rc.d/rc.pcmcia start
+
+echo
+echo
+echo "The PCMCIA/Cardbus subsystem is now installed. Please make sure that"
+echo "all of the cards you'll need for the installation are in the machine."
+echo "If you still need to insert any PCMCIA/Cardbus cards, do that now. Once"
+echo "the drive stops (indicating that all needed modules have been"
+echo -n "loaded), then press [enter] to continue."
+read inputjunk
+echo
+
+echo
+echo "The next step in your installation may be partitioning your hard drive"
+echo "(if you're installing to a Linux partition) with 'fdisk' or 'cfdisk'"
+echo "(the menu-driven version of fdisk). If you already have a partition"
+echo "prepared for Linux, run 'setup' to start the installer program."
+echo
diff --git a/source/installer/sources/initrd/bin/zcat b/source/installer/sources/initrd/bin/zcat
new file mode 100755
index 00000000..569b1539
--- /dev/null
+++ b/source/installer/sources/initrd/bin/zcat
@@ -0,0 +1,56 @@
+#!/bin/sh
+# Uncompress files to standard output.
+
+# Copyright (C) 2007 Free Software Foundation
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+bindir='/bin'
+case $1 in
+--__bindir) bindir=${2?}; shift; shift;;
+esac
+PATH=$bindir:$PATH
+
+version="zcat (gzip) 1.4
+Copyright (C) 2007, 2009-2010 Free Software Foundation, Inc.
+This is free software. You may redistribute copies of it under the terms of
+the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
+There is NO WARRANTY, to the extent permitted by law.
+
+Written by Paul Eggert."
+
+usage="Usage: $0 [OPTION]... [FILE]...
+Uncompress FILEs to standard output.
+
+ -f, --force force; read compressed data even from a terminal
+ -l, --list list compressed file contents
+ -q, --quiet suppress all warnings
+ -r, --recursive operate recursively on directories
+ -S, --suffix=SUF use suffix SUF on compressed files
+ -t, --test test compressed file integrity
+ -v, --verbose verbose mode
+ --help display this help and exit
+ --version display version information and exit
+
+With no FILE, or when FILE is -, read standard input.
+
+Report bugs to <bug-gzip@gnu.org>."
+
+case $1 in
+--help) exec echo "$usage";;
+--version) exec echo "$version";;
+esac
+
+exec gzip -cd "$@"