ABI
Application Binary Interface
ALFS
Automated Linux From Scratch
API
Application Programming Interface
ASCII
American Standard Code for Information Interchange
BIOS
Basic Input/Output System
BLFS
Beyond Linux From Scratch
BSD
Berkeley Software Distribution
chroot
change root
CMOS
Complementary Metal Oxide Semiconductor
COS
Class Of Service
CPU
Central Processing Unit
CRC
Cyclic Redundancy Check
CVS
Concurrent Versions System
DHCP
Dynamic Host Configuration Protocol
DNS
Domain Name Service
EGA
Enhanced Graphics Adapter
ELF
Executable and Linkable Format
EOF
End of File
EQN
equation
ext2
second extended file system
ext3
third extended file system
ext4
fourth extended file system
FAQ
Frequently Asked Questions
FHS
Filesystem Hierarchy Standard
FIFO
First-In, First Out
FQDN
Fully Qualified Domain Name
FTP
File Transfer Protocol
GB
Gigabytes
GCC
GNU Compiler Collection
GID
Group Identifier
GMT
Greenwich Mean Time
HTML
Hypertext Markup Language
IDE
Integrated Drive Electronics
IEEE
Institute of Electrical and Electronic Engineers
IO
Input/Output
IP
Internet Protocol
IPC
Inter-Process Communication
IRC
Internet Relay Chat
ISO
International Organization for Standardization
ISP
Internet Service Provider
KB
Kilobytes
LED
Light Emitting Diode
LFS
Linux From Scratch
LSB
Linux Standard Base
MB
Megabytes
MBR
Master Boot Record
MD5
Message Digest 5
NIC
Network Interface Card
NLS
Native Language Support
NNTP
Network News Transport Protocol
NPTL
Native POSIX Threading Library
OSS
Open Sound System
PCH
Pre-Compiled Headers
PCRE
Perl Compatible Regular Expression
PID
Process Identifier
PTY
pseudo terminal
QOS
Quality Of Service
RAM
Random Access Memory
RPC
Remote Procedure Call
RTC
Real Time Clock
SBU
Standard Build Unit
SCO
The Santa Cruz Operation
SHA1
Secure-Hash Algorithm 1
TLDP
The Linux Documentation Project
TFTP
Trivial File Transfer Protocol
TLS
Thread-Local Storage
UID
User Identifier
umask
user file-creation mask
USB
Universal Serial Bus
UTC
Coordinated Universal Time
UUID
Universally Unique Identifier
VC
Virtual Console
VGA
Video Graphics Array
VT
Virtual Terminal
We would like to thank the following people and organizations for their contributions to the Linux From Scratch Project.
Gerard Beekmans – LFS Creator
Bruce Dubbs – LFS Managing Editor
Jim Gifford – CLFS Project Co-Leader
Pierre Labastie – BLFS Editor and ALFS Lead
DJ Lucas – LFS and BLFS Editor
Ken Moffat – BLFS Editor
Douglas R. Reno – Systemd Editor
Countless other people on the various LFS and BLFS mailing lists who helped make this book possible by giving their suggestions, testing the book, and submitting bug reports, instructions, and their experiences with installing various packages.
Manuel Canales Esparcia – Spanish LFS translation project
Johan Lenglet – French LFS translation project until 2008
Jean-Philippe Mengual – French LFS translation project 2008-2016
Julien Lepiller – French LFS translation project 2017-present
Anderson Lizardo – Portuguese LFS translation project
Thomas Reitelbach – German LFS translation project
Scott Kveton – lfs.oregonstate.edu mirror
William Astle – ca.linuxfromscratch.org mirror
Eujon Sellers [email protected] – lfs.introspeed.com mirror
Justin Knierim [email protected] – lfs-matrix.net mirror
Manuel Canales Esparcia – lfsmirror.lfs-es.info mirror
Luis Falcon – torredehanoi.org mirror
Guido Passet – nl.linuxfromscratch.org mirror
Bastiaan Jacques – lfs.pagefault.net mirror
Sven Cranshoff – lfs.lineo.be mirror
Scarlet Belgium – lfs.scarlet.be mirror
Sebastian Faulborn – lfs.aliensoft.org mirror
Stuart Fox – lfs.dontuse.ms mirror
Ralf Uhlemann – lfs.oss-mirror.org mirror
Antonin Sprinzl – at.linuxfromscratch.org mirror
Fredrik Danerklint – se.linuxfromscratch.org mirror
Franck – lfs.linuxpourtous.com mirror
Philippe Baque – lfs.cict.fr mirror
Vitaly Chekasin – lfs.pilgrims.ru mirror
Benjamin Heil – lfs.wankoo.org mirror
Satit Phermsawang – lfs.phayoune.org mirror
Shizunet Co.,Ltd. – lfs.mirror.shizu-net.jp mirror
Init World http://www.initworld.com/ – lfs.initworld.com mirror
Jason Andrade – au.linuxfromscratch.org mirror
Christine Barczak – LFS Book Editor
Archaic [email protected] – LFS Technical Writer/Editor, HLFS Project Leader, BLFS Editor, Hints and Patches Project Maintainer
Matthew Burgess – LFS Project Leader, LFS Technical Writer/Editor
Nathan Coulson – LFS-Bootscripts Maintainer
Timothy Bauscher
Robert Briggs
Ian Chilton
Jeroen Coumans – Website Developer, FAQ Maintainer
Manuel Canales Esparcia – LFS/BLFS/HLFS XML and XSL Maintainer
Alex Groenewoud – LFS Technical Writer
Marc Heerdink
Jeremy Huntwork – LFS Technical Writer, LFS LiveCD Maintainer
Bryan Kadzban – LFS Technical Writer
Mark Hymers
Seth W. Klein – FAQ maintainer
Nicholas Leippe – Wiki Maintainer
Anderson Lizardo – Website Backend-Scripts Maintainer
Randy McMurchy – BLFS Project Leader, LFS Editor
Dan Nicholson – LFS and BLFS Editor
Alexander E. Patrakov – LFS Technical Writer, LFS Internationalization Editor, LFS Live CD Maintainer
Simon Perreault
Scot Mc Pherson – LFS NNTP Gateway Maintainer
Ryan Oliver – CLFS Project Co-Leader
Greg Schafer – LFS Technical Writer and Architect of the Next Generation 64-bit-enabling Build Method
Jesse Tie-Ten-Quee – LFS Technical Writer
James Robertson – Bugzilla Maintainer
Tushar Teredesai – BLFS Book Editor, Hints and Patches Project Leader
Jeremy Utley – LFS Technical Writer, Bugzilla Maintainer, LFS-Bootscripts Maintainer
Zack Winkles – LFS Technical Writer
Every package built in LFS relies on one or more other packages in order to build and install properly. Some packages even participate in circular dependencies, that is, the first package depends on the second which in turn depends on the first. Because of these dependencies, the order in which packages are built in LFS is very important. The purpose of this page is to document the dependencies of each package built in LFS.
For each package we build, we have listed three, and sometimes four, types of dependencies. The first lists what other packages need to be available in order to compile and install the package in question. The second lists what packages, in addition to those on the first list, need to be available in order to run the test suites. The third list of dependencies are packages that require this package to be built and installed in its final location before they are built and installed. In most cases, this is because these packages will hard code paths to binaries within their scripts. If not built in a certain order, this could result in paths of /tools/bin/[binary] being placed inside scripts installed to the final system. This is obviously not desirable.
The last list of dependencies are optional packages that are not addressed in LFS, but could be useful to the user. These packages may have additional mandatory or optional dependencies of their own. For these dependencies, the recommended practice is to install them after completion of the LFS book and then go back and rebuild the LFS package. In several cases, re-installation is addressed in BLFS.
**Installation depends on:**Attr, Bash, Binutils, Coreutils, GCC, Gettext, Grep, M4, Make, Perl, Sed, and Texinfo
**Test suite depends on:**Automake, Diffutils, Findutils, and Libtool
**Must be installed before:**Coreutils, Sed, Tar, Vim
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, GCC, Gettext, Grep, M4, Make, Perl, Sed, and Texinfo
**Test suite depends on:**Automake, Diffutils, Findutils, and Libtool
**Must be installed before:**Acl, Libcap
**Optional dependencies:**None
**Installation depends on:**Bash, Coreutils, Grep, M4, Make, Perl, Sed, and Texinfo
**Test suite depends on:**Automake, Diffutils, Findutils, GCC, and Libtool
**Must be installed before:**Automake
**Optional dependencies:**Emacs
**Installation depends on:**Autoconf, Bash, Coreutils, Gettext, Grep, M4, Make, Perl, Sed, and Texinfo
**Test suite depends on:**Binutils, Bison, Bzip2, DejaGNU, Diffutils, Expect, Findutils, Flex, GCC, Gettext, Gzip, Libtool, and Tar.
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Bison, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Ncurses, Patch, Readline, Sed, and Texinfo
**Test suite depends on:**Shadow
**Must be installed before:**None
**Optional dependencies:**Xorg
**Installation depends on:**Bash, Binutils, Bison, Coreutils, GCC, Glibc, Grep, Make, and Readline
**Test suite depends on:**Gawk
**Must be installed before:**Linux Kernel
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, Diffutils, File, Gawk, GCC, Glibc, Grep, Make, Perl, Sed, Texinfo and Zlib
**Test suite depends on:**DejaGNU and Expect
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, M4, Make, Perl, and Sed
**Test suite depends on:**Diffutils, Findutils, and Flex
**Must be installed before:**Kbd and Tar
**Optional dependencies:**Doxygen (test suite)
**Installation depends on:**Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Make, and Patch
**Test suite depends on:**None
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**GCC, Grep, Make, Sed, and Texinfo
**Test suite depends on:**None
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, GCC, Gettext, Glibc, GMP, Grep, Make, Patch, Perl, Sed, and Texinfo
**Test suite depends on:**Diffutils, E2fsprogs, Findutils, Shadow, and Util-linux
**Must be installed before:**Bash, Diffutils, Findutils, Man-DB, and Eudev
**Optional dependencies:**Perl Expect and IO:Tty modules (for test suite)
**Installation depends on:**Bash, Coreutils, Diffutils, GCC, Grep, Make, and Sed
**Test suite depends on:**None
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, Gawk, GCC, Gettext, Glibc, Grep, Make, Sed, and Texinfo
**Test suite depends on:**Diffutils, Perl
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Gperf, Make, and Sed
**Test suite depends on:**None
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make, and Sed
**Test suite depends on:**None
**Must be installed before:**XML::Parser
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, Patch, Sed, and Tcl
**Test suite depends on:**None
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Gzip, Make, Sed, Texinfo, and Util-linux
**Test suite depends on:**Procps-ng,Psmisc
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Sed, and Zlib
**Test suite depends on:**None
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Sed, and Texinfo
**Test suite depends on:**DejaGNU, Diffutils, and Expect
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, M4, Make, Patch, Sed, and Texinfo
**Test suite depends on:**Bison and Gawk
**Must be installed before:**IPRoute2, Kbd, and Man-DB
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, GCC, Gettext, Glibc, GMP, Grep, Make, MPFR, Patch, Readline, Sed and Texinfo
**Test suite depends on:**Diffutils
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, Diffutils, Findutils, Gawk, GCC, Gettext, Glibc, GMP, Grep, M4, Make, MPC, MPFR, Patch, Perl, Sed, Tar, and Texinfo
**Test suite depends on:**DejaGNU and Expect
**Must be installed before:**None
Optional dependencies:CLooG-PPL, GNAT and PPL
**Installation depends on:**Bash, Binutils, Coreutils, Diffutils, GCC, Grep, Make, and Sed
**Test suite depends on:**None
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make, Sed, and Texinfo
**Test suite depends on:**Diffutils, Perl, and Tcl
**Must be installed before:**Automake
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Gettext, Grep, Gzip, Linux API Headers, Make, Perl, Sed, and Texinfo
**Test suite depends on:**File
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, M4, Make, Sed and Texinfo
**Test suite depends on:**None
**Must be installed before:**MPFR, GCC
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, GCC, Glibc, Make
**Test suite depends on:**Diffutils, Expect
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep, Make, Patch, Sed, and Texinfo
**Test suite depends on:**Gawk
**Must be installed before:**Man-DB
**Optional dependencies:**Pcre
**Installation depends on:**Bash, Binutils, Bison, Coreutils, Gawk, GCC, Glibc, Grep, Make, Patch, Sed, and Texinfo
**Test suite depends on:**No test suite available
**Must be installed before:**Man-DB and Perl
**Optional dependencies:**GPL Ghostscript
**Installation depends on:**Bash, Binutils, Bison, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep, Make, Ncurses, Sed, Texinfo, and Xz
**Test suite depends on:**None
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, Sed, and Texinfo
**Test suite depends on:**Diffutils, Less
**Must be installed before:**Man-DB
**Optional dependencies:**None
**Installation depends on:**Coreutils, Gawk, and Make
**Test suite depends on:**No test suite available
**Must be installed before:**Perl
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, Ncurses, Patch, Sed, Texinfo, and Zlib
**Test suite depends on:**No test suite available
**Must be installed before:**Tar
**Optional dependencies:**None
**Installation depends on:**Bash, Gawk, Glibc, Make, Perl, Sed, and XML::Parser
**Test suite depends on:**Perl
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Bash, Bison, Coreutils, Flex, GCC, Glibc, Make, and Linux API Headers
**Test suite depends on:**No test suite available
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Bison, Check, Coreutils, Flex, GCC, Gettext, Glibc, Gzip, Make, Patch, and Sed
**Test suite depends on:**No test suite available
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Bison, Coreutils, Flex, GCC, Gettext, Glibc, Gzip, Make, Sed, Xz-Utils, Zlib
**Test suite depends on:**No test suite available
**Must be installed before:**Eudev
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, Ncurses, and Sed
**Test suite depends on:**No test suite available
**Must be installed before:**Gzip
**Optional dependencies:**Pcre
**Installation depends on:**Attr, Bash, Binutils, Coreutils, GCC, Glibc, Perl, Make, and Sed
**Test suite depends on:**No test suite available
**Must be installed before:**None
**Optional dependencies:**Linux-PAM
**Installation depends on:**Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Sed, and Texinfo
**Test suite depends on:**Check
**Must be installed before:**Man-DB
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Sed, and Texinfo
**Test suite depends on:**Autoconf, Automake, Findutils
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Bash, Bc, Binutils, Coreutils, Diffutils, Findutils, GCC, Glibc, Grep, Gzip, Kmod, Make, Ncurses, Perl, and Sed
**Test suite depends on:**No test suite available
**Must be installed before:**OpenSSL
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, Sed, and Texinfo
**Test suite depends on:**Diffutils
**Must be installed before:**Autoconf and Bison
**Optional dependencies:**libsigsegv
**Installation depends on:**Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Sed, and Texinfo
**Test suite depends on:**Perl and Procps-ng
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Bzip2, Coreutils, Flex, GCC, GDBM, Gettext, Glibc, Grep, Groff, Gzip, Less, Libpipeline, Make, Sed, and Xz
**Test suite depends on:**Util-linux
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Bash, Coreutils, and Make
**Test suite depends on:**No test suite available
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, GMP, Make, MPFR, Sed and Texinfo
**Test suite depends on:**None
**Must be installed before:**GCC
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, GMP, Make, Sed and Texinfo
**Test suite depends on:**None
**Must be installed before:**Gawk, GCC
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Patch, and Sed
**Test suite depends on:**No test suite available
**Must be installed before:**Bash, GRUB, Inetutils, Less, Procps-ng, Psmisc, Readline, Texinfo, Util-linux, and Vim
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, and Sed
**Test suite depends on:**Diffutils
**Must be installed before:**None
**Optional dependencies:**Ed
**Installation depends on:**Bash, Binutils, Coreutils, Gawk, GCC, GDBM, Glibc, Grep, Groff, Make, Sed, and Zlib
**Test suite depends on:**Iana-Etc and Procps-ng
**Must be installed before:**Autoconf
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make, Popt, and Sed
**Test suite depends on:**None
**Must be installed before:**Kmod
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make
**Test suite depends on:**Diffutils and Sed
**Must be installed before:**Pkg-config
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, GCC, Glibc, Make, and Ncurses
**Test suite depends on:**DejaGNU
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Ncurses, and Sed
**Test suite depends on:**No test suite available
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make, Ncurses, Patch, Sed, and Texinfo
**Test suite depends on:**No test suite available
**Must be installed before:**Bash, Gawk
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Sed, and Texinfo
**Test suite depends on:**Diffutils and Gawk
**Must be installed before:**E2fsprogs, File, Libtool, and Shadow
**Optional dependencies:**Cracklib
**Installation depends on:**Bash, Binutils, Coreutils, Diffutils, Findutils, Gawk, GCC, Gettext, Glibc, Grep, Make, and Sed
**Test suite depends on:**No test suite available
**Must be installed before:**Coreutils
**Optional dependencies:**Acl, Attr, Cracklib, PAM
**Installation depends on:**Binutils, Coreutils, GCC, Glibc, Make, and Patch
**Test suite depends on:**No test suite available
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Binutils, Coreutils, GCC, Glibc, Make, and Sed
**Test suite depends on:**No test suite available
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Acl, Attr, Bash, Binutils, Bison, Coreutils, GCC, Gettext, Glibc, Grep, Inetutils, Make, Sed, and Texinfo
**Test suite depends on:**Autoconf, Diffutils, Findutils, Gawk, and Gzip
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, and Sed
**Test suite depends on:**None
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Ncurses, Patch, and Sed
**Test suite depends on:**None
**Must be installed before:**None
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, Diffutils, Findutils, Gawk, GCC, Gettext, Glibc, Grep, Make, Ncurses, Sed, Eudev, and Zlib
**Test suite depends on:**None
**Must be installed before:**None
Optional dependencies:libcap-ng
**Installation depends on:**Acl, Attr, Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, Ncurses, and Sed
**Test suite depends on:**None
**Must be installed before:**None
**Optional dependencies:**Xorg, GTK+2, LessTif, Python, Tcl, Ruby, and GPM
**Installation depends on:**Bash, Binutils, Coreutils, Expat, GCC, Glibc, Make, and Perl
**Test suite depends on:**Perl
**Must be installed before:**Intltool
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, and Make.
**Test suite depends on:**None
**Must be installed before:**GRUB, Kmod, Man-DB, Eudev
**Optional dependencies:**None
**Installation depends on:**Bash, Binutils, Coreutils, GCC, Glibc, Make, and Sed
**Test suite depends on:**None
**Must be installed before:**File, Kmod, Perl, and Util-linux
**Optional dependencies:**None
The scripts in this appendix are listed by the directory where they normally reside. The order is /etc/rc.d/init.d
, /etc/sysconfig
, /etc/sysconfig/network-devices
, and /etc/sysconfig/network-devices/services
. Within each section, the files are listed in the order they are normally called.
The rc
script is the first script called by init and initiates the boot process.
#!/bin/bash
########################################################################
# Begin rc
#
# Description : Main Run Level Control Script
#
# Authors : Gerard Beekmans - gerard AT linuxfromscratch D0T org
# : DJ Lucas - dj AT linuxfromscratch D0T org
# Update : Bruce Dubbs - bdubbs AT linuxfromscratch D0T org
#
# Version : LFS 7.0
#
########################################################################
. /lib/lsb/init-functions
print_error_msg()
{
log_failure_msg
# $i is set when called
MSG="FAILURE:\n\nYou should not be reading this error message.\n\n"
MSG="${MSG}It means that an unforeseen error took place in\n"
MSG="${MSG}${i},\n"
MSG="${MSG}which exited with a return value of ${error_value}.\n"
MSG="${MSG}If you're able to track this error down to a bug in one of\n"
MSG="${MSG}the files provided by the ${DISTRO_MINI} book,\n"
MSG="${MSG}please be so kind to inform us at ${DISTRO_CONTACT}.\n"
log_failure_msg "${MSG}"
log_info_msg "Press Enter to continue..."
wait_for_user
}
check_script_status()
{
# $i is set when called
if [ ! -f ${i} ]; then
log_warning_msg "${i} is not a valid symlink."
SCRIPT_STAT="1"
fi
if [ ! -x ${i} ]; then
log_warning_msg "${i} is not executable, skipping."
SCRIPT_STAT="1"
fi
}
run()
{
if [ -z $interactive ]; then
${1} ${2}
return $?
fi
while true; do
read -p "Run ${1} ${2} (Yes/no/continue)? " -n 1 runit
echo
case ${runit} in
c | C)
interactive=""
${i} ${2}
ret=${?}
break;
;;
n | N)
return 0
;;
y | Y)
${i} ${2}
ret=${?}
break
;;
esac
done
return $ret
}
# Read any local settings/overrides
[ -r /etc/sysconfig/rc.site ] && source /etc/sysconfig/rc.site
DISTRO=${DISTRO:-"Linux From Scratch"}
DISTRO_CONTACT=${DISTRO_CONTACT:-"[email protected] (Registration required)"}
DISTRO_MINI=${DISTRO_MINI:-"LFS"}
IPROMPT=${IPROMPT:-"no"}
# These 3 signals will not cause our script to exit
trap "" INT QUIT TSTP
[ "${1}" != "" ] && runlevel=${1}
if [ "${runlevel}" == "" ]; then
echo "Usage: ${0} <runlevel>" >&2
exit 1
fi
previous=${PREVLEVEL}
[ "${previous}" == "" ] && previous=N
if [ ! -d /etc/rc.d/rc${runlevel}.d ]; then
log_info_msg "/etc/rc.d/rc${runlevel}.d does not exist.\n"
exit 1
fi
if [ "$runlevel" == "6" -o "$runlevel" == "0" ]; then IPROMPT="no"; fi
# Note: In ${LOGLEVEL:-7}, it is ':' 'dash' '7', not minus 7
if [ "$runlevel" == "S" ]; then
[ -r /etc/sysconfig/console ] && source /etc/sysconfig/console
dmesg -n "${LOGLEVEL:-7}"
fi
if [ "${IPROMPT}" == "yes" -a "${runlevel}" == "S" ]; then
# The total length of the distro welcome string, without escape codes
wlen=${wlen:-$(echo "Welcome to ${DISTRO}" | wc -c )}
welcome_message=${welcome_message:-"Welcome to ${INFO}${DISTRO}${NORMAL}"}
# The total length of the interactive string, without escape codes
ilen=${ilen:-$(echo "Press 'I' to enter interactive startup" | wc -c )}
i_message=${i_message:-"Press '${FAILURE}I${NORMAL}' to enter interactive startup"}
# dcol and icol are spaces before the message to center the message
# on screen. itime is the amount of wait time for the user to press a key
wcol=$(( ( ${COLUMNS} - ${wlen} ) / 2 ))
icol=$(( ( ${COLUMNS} - ${ilen} ) / 2 ))
itime=${itime:-"3"}
echo -e "\n\n"
echo -e "\\033[${wcol}G${welcome_message}"
echo -e "\\033[${icol}G${i_message}${NORMAL}"
echo ""
read -t "${itime}" -n 1 interactive 2>&1 > /dev/null
fi
# Make lower case
[ "${interactive}" == "I" ] && interactive="i"
[ "${interactive}" != "i" ] && interactive=""
# Read the state file if it exists from runlevel S
[ -r /var/run/interactive ] && source /var/run/interactive
# Attempt to stop all services started by the previous runlevel,
# and killed in this runlevel
if [ "${previous}" != "N" ]; then
for i in $(ls -v /etc/rc.d/rc${runlevel}.d/K* 2> /dev/null)
do
check_script_status
if [ "${SCRIPT_STAT}" == "1" ]; then
SCRIPT_STAT="0"
continue
fi
suffix=${i#/etc/rc.d/rc$runlevel.d/K[0-9][0-9]}
prev_start=/etc/rc.d/rc$previous.d/S[0-9][0-9]$suffix
sysinit_start=/etc/rc.d/rcS.d/S[0-9][0-9]$suffix
if [ "${runlevel}" != "0" -a "${runlevel}" != "6" ]; then
if [ ! -f ${prev_start} -a ! -f ${sysinit_start} ]; then
MSG="WARNING:\n\n${i} can't be "
MSG="${MSG}executed because it was not "
MSG="${MSG}not started in the previous "
MSG="${MSG}runlevel (${previous})."
log_warning_msg "$MSG"
continue
fi
fi
run ${i} stop
error_value=${?}
if [ "${error_value}" != "0" ]; then print_error_msg; fi
done
fi
if [ "${previous}" == "N" ]; then export IN_BOOT=1; fi
if [ "$runlevel" == "6" -a -n "${FASTBOOT}" ]; then
touch /fastboot
fi
# Start all functions in this runlevel
for i in $( ls -v /etc/rc.d/rc${runlevel}.d/S* 2> /dev/null)
do
if [ "${previous}" != "N" ]; then
suffix=${i#/etc/rc.d/rc$runlevel.d/S[0-9][0-9]}
stop=/etc/rc.d/rc$runlevel.d/K[0-9][0-9]$suffix
prev_start=/etc/rc.d/rc$previous.d/S[0-9][0-9]$suffix
[ -f ${prev_start} -a ! -f ${stop} ] && continue
fi
check_script_status
if [ "${SCRIPT_STAT}" == "1" ]; then
SCRIPT_STAT="0"
continue
fi
case ${runlevel} in
0|6)
run ${i} stop
;;
*)
run ${i} start
;;
esac
error_value=${?}
if [ "${error_value}" != "0" ]; then print_error_msg; fi
done
# Store interactive variable on switch from runlevel S and remove if not
if [ "${runlevel}" == "S" -a "${interactive}" == "i" ]; then
echo "interactive=\"i\"" > /var/run/interactive
else
rm -f /var/run/interactive 2> /dev/null
fi
# Copy the boot log on initial boot only
if [ "${previous}" == "N" -a "${runlevel}" != "S" ]; then
cat $BOOTLOG >> /var/log/boot.log
# Mark the end of boot
echo "--------" >> /var/log/boot.log
# Remove the temporary file
rm -f $BOOTLOG 2> /dev/null
fi
# End rc
#!/bin/sh
########################################################################
#
# Begin /lib/lsb/init-funtions
#
# Description : Run Level Control Functions
#
# Authors : Gerard Beekmans - gerard AT linuxfromscratch D0T org
# : DJ Lucas - dj AT linuxfromscratch D0T org
# Update : Bruce Dubbs - bdubbs AT linuxfromscratch D0T org
#
# Version : LFS 7.0
#
# Notes : With code based on Matthias Benkmann's simpleinit-msb
# http://winterdrache.de/linux/newboot/index.html
#
# The file should be located in /lib/lsb
#
########################################################################
## Environmental setup
# Setup default values for environment
umask 022
export PATH="/bin:/usr/bin:/sbin:/usr/sbin"
## Set color commands, used via echo
# Please consult `man console_codes for more information
# under the "ECMA-48 Set Graphics Rendition" section
#
# Warning: when switching from a 8bit to a 9bit font,
# the linux console will reinterpret the bold (1;) to
# the top 256 glyphs of the 9bit font. This does
# not affect framebuffer consoles
NORMAL="\\033[0;39m" # Standard console grey
SUCCESS="\\033[1;32m" # Success is green
WARNING="\\033[1;33m" # Warnings are yellow
FAILURE="\\033[1;31m" # Failures are red
INFO="\\033[1;36m" # Information is light cyan
BRACKET="\\033[1;34m" # Brackets are blue
# Use a colored prefix
BMPREFIX=" "
SUCCESS_PREFIX="${SUCCESS} * ${NORMAL}"
FAILURE_PREFIX="${FAILURE}*****${NORMAL}"
WARNING_PREFIX="${WARNING} *** ${NORMAL}"
SKIP_PREFIX="${INFO} S ${NORMAL}"
SUCCESS_SUFFIX="${BRACKET}[${SUCCESS} OK ${BRACKET}]${NORMAL}"
FAILURE_SUFFIX="${BRACKET}[${FAILURE} FAIL ${BRACKET}]${NORMAL}"
WARNING_SUFFIX="${BRACKET}[${WARNING} WARN ${BRACKET}]${NORMAL}"
SKIP_SUFFIX="${BRACKET}[${INFO} SKIP ${BRACKET}]${NORMAL}"
BOOTLOG=/run/bootlog
KILLDELAY=3
SCRIPT_STAT="0"
# Set any user specified environment variables e.g. HEADLESS
[ -r /etc/sysconfig/rc.site ] && . /etc/sysconfig/rc.site
## Screen Dimensions
# Find current screen size
if [ -z "${COLUMNS}" ]; then
COLUMNS=$(stty size)
COLUMNS=${COLUMNS##* }
fi
# When using remote connections, such as a serial port, stty size returns 0
if [ "${COLUMNS}" = "0" ]; then
COLUMNS=80
fi
## Measurements for positioning result messages
COL=$((${COLUMNS} - 8))
WCOL=$((${COL} - 2))
## Set Cursor Position Commands, used via echo
SET_COL="\\033[${COL}G" # at the $COL char
SET_WCOL="\\033[${WCOL}G" # at the $WCOL char
CURS_UP="\\033[1A\\033[0G" # Up one line, at the 0'th char
CURS_ZERO="\\033[0G"
################################################################################
# start_daemon() #
# Usage: start_daemon [-f] [-n nicelevel] [-p pidfile] pathname [args...] #
# #
# Purpose: This runs the specified program as a daemon #
# #
# Inputs: -f: (force) run the program even if it is already running. #
# -n nicelevel: specify a nice level. See 'man nice(1)'. #
# -p pidfile: use the specified file to determine PIDs. #
# pathname: the complete path to the specified program #
# args: additional arguments passed to the program (pathname) #
# #
# Return values (as defined by LSB exit codes): #
# 0 - program is running or service is OK #
# 1 - generic or unspecified error #
# 2 - invalid or excessive argument(s) #
# 5 - program is not installed #
################################################################################
start_daemon()
{
local force=""
local nice="0"
local pidfile=""
local pidlist=""
local retval=""
# Process arguments
while true
do
case "${1}" in
-f)
force="1"
shift 1
;;
-n)
nice="${2}"
shift 2
;;
-p)
pidfile="${2}"
shift 2
;;
-*)
return 2
;;
*)
program="${1}"
break
;;
esac
done
# Check for a valid program
if [ ! -e "${program}" ]; then return 5; fi
# Execute
if [ -z "${force}" ]; then
if [ -z "${pidfile}" ]; then
# Determine the pid by discovery
pidlist=`pidofproc "${1}"`
retval="${?}"
else
# The PID file contains the needed PIDs
# Note that by LSB requirement, the path must be given to pidofproc,
# however, it is not used by the current implementation or standard.
pidlist=`pidofproc -p "${pidfile}" "${1}"`
retval="${?}"
fi
# Return a value ONLY
# It is the init script's (or distribution's functions) responsibilty
# to log messages!
case "${retval}" in
0)
# Program is already running correctly, this is a
# successful start.
return 0
;;
1)
# Program is not running, but an invalid pid file exists
# remove the pid file and continue
rm -f "${pidfile}"
;;
3)
# Program is not running and no pidfile exists
# do nothing here, let start_deamon continue.
;;
*)
# Others as returned by status values shall not be interpreted
# and returned as an unspecified error.
return 1
;;
esac
fi
# Do the start!
nice -n "${nice}" "${@}"
}
################################################################################
# killproc() #
# Usage: killproc [-p pidfile] pathname [signal] #
# #
# Purpose: Send control signals to running processes #
# #
# Inputs: -p pidfile, uses the specified pidfile #
# pathname, pathname to the specified program #
# signal, send this signal to pathname #
# #
# Return values (as defined by LSB exit codes): #
# 0 - program (pathname) has stopped/is already stopped or a #
# running program has been sent specified signal and stopped #
# successfully #
# 1 - generic or unspecified error #
# 2 - invalid or excessive argument(s) #
# 5 - program is not installed #
# 7 - program is not running and a signal was supplied #
################################################################################
killproc()
{
local pidfile
local program
local prefix
local progname
local signal="-TERM"
local fallback="-KILL"
local nosig
local pidlist
local retval
local pid
local delay="30"
local piddead
local dtime
# Process arguments
while true; do
case "${1}" in
-p)
pidfile="${2}"
shift 2
;;
*)
program="${1}"
if [ -n "${2}" ]; then
signal="${2}"
fallback=""
else
nosig=1
fi
# Error on additional arguments
if [ -n "${3}" ]; then
return 2
else
break
fi
;;
esac
done
# Check for a valid program
if [ ! -e "${program}" ]; then return 5; fi
# Check for a valid signal
check_signal "${signal}"
if [ "${?}" -ne "0" ]; then return 2; fi
# Get a list of pids
if [ -z "${pidfile}" ]; then
# determine the pid by discovery
pidlist=`pidofproc "${1}"`
retval="${?}"
else
# The PID file contains the needed PIDs
# Note that by LSB requirement, the path must be given to pidofproc,
# however, it is not used by the current implementation or standard.
pidlist=`pidofproc -p "${pidfile}" "${1}"`
retval="${?}"
fi
# Return a value ONLY
# It is the init script's (or distribution's functions) responsibilty
# to log messages!
case "${retval}" in
0)
# Program is running correctly
# Do nothing here, let killproc continue.
;;
1)
# Program is not running, but an invalid pid file exists
# Remove the pid file.
rm -f "${pidfile}"
# This is only a success if no signal was passed.
if [ -n "${nosig}" ]; then
return 0
else
return 7
fi
;;
3)
# Program is not running and no pidfile exists
# This is only a success if no signal was passed.
if [ -n "${nosig}" ]; then
return 0
else
return 7
fi
;;
*)
# Others as returned by status values shall not be interpreted
# and returned as an unspecified error.
return 1
;;
esac
# Perform different actions for exit signals and control signals
check_sig_type "${signal}"
if [ "${?}" -eq "0" ]; then # Signal is used to terminate the program
# Account for empty pidlist (pid file still exists and no
# signal was given)
if [ "${pidlist}" != "" ]; then
# Kill the list of pids
for pid in ${pidlist}; do
kill -0 "${pid}" 2> /dev/null
if [ "${?}" -ne "0" ]; then
# Process is dead, continue to next and assume all is well
continue
else
kill "${signal}" "${pid}" 2> /dev/null
# Wait up to ${delay}/10 seconds to for "${pid}" to
# terminate in 10ths of a second
while [ "${delay}" -ne "0" ]; do
kill -0 "${pid}" 2> /dev/null || piddead="1"
if [ "${piddead}" = "1" ]; then break; fi
sleep 0.1
delay="$(( ${delay} - 1 ))"
done
# If a fallback is set, and program is still running, then
# use the fallback
if [ -n "${fallback}" -a "${piddead}" != "1" ]; then
kill "${fallback}" "${pid}" 2> /dev/null
sleep 1
# Check again, and fail if still running
kill -0 "${pid}" 2> /dev/null && return 1
fi
fi
done
fi
# Check for and remove stale PID files.
if [ -z "${pidfile}" ]; then
# Find the basename of $program
prefix=`echo "${program}" | sed 's/[^/]*$//'`
progname=`echo "${program}" | sed "s@${prefix}@@"`
if [ -e "/var/run/${progname}.pid" ]; then
rm -f "/var/run/${progname}.pid" 2> /dev/null
fi
else
if [ -e "${pidfile}" ]; then rm -f "${pidfile}" 2> /dev/null; fi
fi
# For signals that do not expect a program to exit, simply
# let kill do its job, and evaluate kill's return for value
else # check_sig_type - signal is not used to terminate program
for pid in ${pidlist}; do
kill "${signal}" "${pid}"
if [ "${?}" -ne "0" ]; then return 1; fi
done
fi
}
################################################################################
# pidofproc() #
# Usage: pidofproc [-p pidfile] pathname #
# #
# Purpose: This function returns one or more pid(s) for a particular daemon #
# #
# Inputs: -p pidfile, use the specified pidfile instead of pidof #
# pathname, path to the specified program #
# #
# Return values (as defined by LSB status codes): #
# 0 - Success (PIDs to stdout) #
# 1 - Program is dead, PID file still exists (remaining PIDs output) #
# 3 - Program is not running (no output) #
################################################################################
pidofproc()
{
local pidfile
local program
local prefix
local progname
local pidlist
local lpids
local exitstatus="0"
# Process arguments
while true; do
case "${1}" in
-p)
pidfile="${2}"
shift 2
;;
*)
program="${1}"
if [ -n "${2}" ]; then
# Too many arguments
# Since this is status, return unknown
return 4
else
break
fi
;;
esac
done
# If a PID file is not specified, try and find one.
if [ -z "${pidfile}" ]; then
# Get the program's basename
prefix=`echo "${program}" | sed 's/[^/]*$//'`
if [ -z "${prefix}" ]; then
progname="${program}"
else
progname=`echo "${program}" | sed "s@${prefix}@@"`
fi
# If a PID file exists with that name, assume that is it.
if [ -e "/var/run/${progname}.pid" ]; then
pidfile="/var/run/${progname}.pid"
fi
fi
# If a PID file is set and exists, use it.
if [ -n "${pidfile}" -a -e "${pidfile}" ]; then
# Use the value in the first line of the pidfile
pidlist=`/bin/head -n1 "${pidfile}"`
# This can optionally be written as 'sed 1q' to repalce 'head -n1'
# should LFS move /bin/head to /usr/bin/head
else
# Use pidof
pidlist=`pidof "${program}"`
fi
# Figure out if all listed PIDs are running.
for pid in ${pidlist}; do
kill -0 ${pid} 2> /dev/null
if [ "${?}" -eq "0" ]; then
lpids="${lpids}${pid} "
else
exitstatus="1"
fi
done
if [ -z "${lpids}" -a ! -f "${pidfile}" ]; then
return 3
else
echo "${lpids}"
return "${exitstatus}"
fi
}
################################################################################
# statusproc() #
# Usage: statusproc [-p pidfile] pathname #
# #
# Purpose: This function prints the status of a particular daemon to stdout #
# #
# Inputs: -p pidfile, use the specified pidfile instead of pidof #
# pathname, path to the specified program #
# #
# Return values: #
# 0 - Status printed #
# 1 - Input error. The daemon to check was not specified. #
################################################################################
statusproc()
{
local pidfile
local pidlist
if [ "${#}" = "0" ]; then
echo "Usage: statusproc [-p pidfle] {program}"
exit 1
fi
# Process arguments
while true; do
case "${1}" in
-p)
pidfile="${2}"
shift 2
;;
*)
if [ -n "${2}" ]; then
echo "Too many arguments"
return 1
else
break
fi
;;
esac
done
if [ -n "${pidfile}" ]; then
pidlist=`pidofproc -p "${pidfile}" $@`
else
pidlist=`pidofproc $@`
fi
# Trim trailing blanks
pidlist=`echo "${pidlist}" | sed -r 's/ +$//'`
base="${1##*/}"
if [ -n "${pidlist}" ]; then
/bin/echo -e "${INFO}${base} is running with Process" \
"ID(s) ${pidlist}.${NORMAL}"
else
if [ -n "${base}" -a -e "/var/run/${base}.pid" ]; then
/bin/echo -e "${WARNING}${1} is not running but" \
"/var/run/${base}.pid exists.${NORMAL}"
else
if [ -n "${pidfile}" -a -e "${pidfile}" ]; then
/bin/echo -e "${WARNING}${1} is not running" \
"but ${pidfile} exists.${NORMAL}"
else
/bin/echo -e "${INFO}${1} is not running.${NORMAL}"
fi
fi
fi
}
################################################################################
# timespec() #
# #
# Purpose: An internal utility function to format a timestamp #
# a boot log file. Sets the STAMP variable. #
# #
# Return value: Not used #
################################################################################
timespec()
{
STAMP="$(echo `date +"%b %d %T %:z"` `hostname`) "
return 0
}
################################################################################
# log_success_msg() #
# Usage: log_success_msg ["message"] #
# #
# Purpose: Print a successful status message to the screen and #
# a boot log file. #
# #
# Inputs: $@ - Message #
# #
# Return values: Not used #
################################################################################
log_success_msg()
{
/bin/echo -n -e "${BMPREFIX}${@}"
/bin/echo -e "${CURS_ZERO}${SUCCESS_PREFIX}${SET_COL}${SUCCESS_SUFFIX}"
# Strip non-printable characters from log file
logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`
timespec
/bin/echo -e "${STAMP} ${logmessage} OK" >> ${BOOTLOG}
return 0
}
log_success_msg2()
{
/bin/echo -n -e "${BMPREFIX}${@}"
/bin/echo -e "${CURS_ZERO}${SUCCESS_PREFIX}${SET_COL}${SUCCESS_SUFFIX}"
echo " OK" >> ${BOOTLOG}
return 0
}
################################################################################
# log_failure_msg() #
# Usage: log_failure_msg ["message"] #
# #
# Purpose: Print a failure status message to the screen and #
# a boot log file. #
# #
# Inputs: $@ - Message #
# #
# Return values: Not used #
################################################################################
log_failure_msg()
{
/bin/echo -n -e "${BMPREFIX}${@}"
/bin/echo -e "${CURS_ZERO}${FAILURE_PREFIX}${SET_COL}${FAILURE_SUFFIX}"
# Strip non-printable characters from log file
timespec
logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`
/bin/echo -e "${STAMP} ${logmessage} FAIL" >> ${BOOTLOG}
return 0
}
log_failure_msg2()
{
/bin/echo -n -e "${BMPREFIX}${@}"
/bin/echo -e "${CURS_ZERO}${FAILURE_PREFIX}${SET_COL}${FAILURE_SUFFIX}"
echo "FAIL" >> ${BOOTLOG}
return 0
}
################################################################################
# log_warning_msg() #
# Usage: log_warning_msg ["message"] #
# #
# Purpose: Print a warning status message to the screen and #
# a boot log file. #
# #
# Return values: Not used #
################################################################################
log_warning_msg()
{
/bin/echo -n -e "${BMPREFIX}${@}"
/bin/echo -e "${CURS_ZERO}${WARNING_PREFIX}${SET_COL}${WARNING_SUFFIX}"
# Strip non-printable characters from log file
logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`
timespec
/bin/echo -e "${STAMP} ${logmessage} WARN" >> ${BOOTLOG}
return 0
}
log_skip_msg()
{
/bin/echo -n -e "${BMPREFIX}${@}"
/bin/echo -e "${CURS_ZERO}${SKIP_PREFIX}${SET_COL}${SKIP_SUFFIX}"
# Strip non-printable characters from log file
logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`
/bin/echo "SKIP" >> ${BOOTLOG}
return 0
}
################################################################################
# log_info_msg() #
# Usage: log_info_msg message #
# #
# Purpose: Print an information message to the screen and #
# a boot log file. Does not print a trailing newline character. #
# #
# Return values: Not used #
################################################################################
log_info_msg()
{
/bin/echo -n -e "${BMPREFIX}${@}"
# Strip non-printable characters from log file
logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`
timespec
/bin/echo -n -e "${STAMP} ${logmessage}" >> ${BOOTLOG}
return 0
}
log_info_msg2()
{
/bin/echo -n -e "${@}"
# Strip non-printable characters from log file
logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`
/bin/echo -n -e "${logmessage}" >> ${BOOTLOG}
return 0
}
################################################################################
# evaluate_retval() #
# Usage: Evaluate a return value and print success or failyure as appropriate #
# #
# Purpose: Convenience function to terminate an info message #
# #
# Return values: Not used #
################################################################################
evaluate_retval()
{
local error_value="${?}"
if [ ${error_value} = 0 ]; then
log_success_msg2
else
log_failure_msg2
fi
}
################################################################################
# check_signal() #
# Usage: check_signal [ -{signal} | {signal} ] #
# #
# Purpose: Check for a valid signal. This is not defined by any LSB draft, #
# however, it is required to check the signals to determine if the #
# signals chosen are invalid arguments to the other functions. #
# #
# Inputs: Accepts a single string value in the form or -{signal} or {signal} #
# #
# Return values: #
# 0 - Success (signal is valid #
# 1 - Signal is not valid #
################################################################################
check_signal()
{
local valsig
# Add error handling for invalid signals
valsig="-ALRM -HUP -INT -KILL -PIPE -POLL -PROF -TERM -USR1 -USR2"
valsig="${valsig} -VTALRM -STKFLT -PWR -WINCH -CHLD -URG -TSTP -TTIN"
valsig="${valsig} -TTOU -STOP -CONT -ABRT -FPE -ILL -QUIT -SEGV -TRAP"
valsig="${valsig} -SYS -EMT -BUS -XCPU -XFSZ -0 -1 -2 -3 -4 -5 -6 -8 -9"
valsig="${valsig} -11 -13 -14 -15"
echo "${valsig}" | grep -- " ${1} " > /dev/null
if [ "${?}" -eq "0" ]; then
return 0
else
return 1
fi
}
################################################################################
# check_sig_type() #
# Usage: check_signal [ -{signal} | {signal} ] #
# #
# Purpose: Check if signal is a program termination signal or a control signal #
# This is not defined by any LSB draft, however, it is required to #
# check the signals to determine if they are intended to end a #
# program or simply to control it. #
# #
# Inputs: Accepts a single string value in the form or -{signal} or {signal} #
# #
# Return values: #
# 0 - Signal is used for program termination #
# 1 - Signal is used for program control #
################################################################################
check_sig_type()
{
local valsig
# The list of termination signals (limited to generally used items)
valsig="-ALRM -INT -KILL -TERM -PWR -STOP -ABRT -QUIT -2 -3 -6 -9 -14 -15"
echo "${valsig}" | grep -- " ${1} " > /dev/null
if [ "${?}" -eq "0" ]; then
return 0
else
return 1
fi
}
################################################################################
# wait_for_user() #
# #
# Purpose: Wait for the user to respond if not a headless system #
# #
################################################################################
wait_for_user()
{
# Wait for the user by default
[ "${HEADLESS=0}" = "0" ] && read ENTER
return 0
}
################################################################################
# is_true() #
# #
# Purpose: Utility to test if a variable is true | yes | 1 #
# #
################################################################################
is_true()
{
[ "$1" = "1" ] || [ "$1" = "yes" ] || [ "$1" = "true" ] || [ "$1" = "y" ] ||
[ "$1" = "t" ]
}
# End /lib/lsb/init-functions
#!/bin/sh
########################################################################
# Begin mountvirtfs
#
# Description : Mount proc, sysfs, and run
#
# Authors : Gerard Beekmans - gerard AT linuxfromscratch D0T org
# DJ Lucas - dj AT linuxfromscratch D0T org
# Update : Bruce Dubbs - bdubbs AT linuxfromscratch D0T org
#
# Version : LFS 7.0
#
########################################################################
### BEGIN INIT INFO
# Provides: mountvirtfs
# Required-Start:
# Should-Start:
# Required-Stop:
# Should-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Mounts /sys and /proc virtual (kernel) filesystems.
# Mounts /run (tmpfs) and /dev (devtmpfs).
# Description: Mounts /sys and /proc virtual (kernel) filesystems.
# Mounts /run (tmpfs) and /dev (devtmpfs).
# X-LFS-Provided-By: LFS
### END INIT INFO
. /lib/lsb/init-functions
case "${1}" in
start)
# Make sure /run is available before logging any messages
if ! mountpoint /run >/dev/null; then
mount /run || failed=1
fi
mkdir -p /run/lock /run/shm
chmod 1777 /run/shm /run/lock
log_info_msg "Mounting virtual file systems: ${INFO}/run"
if ! mountpoint /proc >/dev/null; then
log_info_msg2 " ${INFO}/proc"
mount -o nosuid,noexec,nodev /proc || failed=1
fi
if ! mountpoint /sys >/dev/null; then
log_info_msg2 " ${INFO}/sys"
mount -o nosuid,noexec,nodev /sys || failed=1
fi
if ! mountpoint /dev >/dev/null; then
log_info_msg2 " ${INFO}/dev"
mount -o mode=0755,nosuid /dev || failed=1
fi
ln -sfn /run/shm /dev/shm
(exit ${failed})
evaluate_retval
exit $failed
;;
*)
echo "Usage: ${0} {start}"
exit 1
;;
esac
# End mountvirtfs
#!/bin/sh
########################################################################
# Begin modules
#
# Description : Module auto-loading script
#
# Authors : Zack Winkles
# DJ Lucas - dj AT linuxfromscratch D0T org
# Update : Bruce Dubbs - bdubbs AT linuxfromscratch D0T org
#
# Version : LFS 7.0
#
########################################################################
### BEGIN INIT INFO
# Provides: modules
# Required-Start: mountvirtfs sysctl
# Should-Start:
# Required-Stop:
# Should-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Loads required modules.
# Description: Loads modules listed in /etc/sysconfig/modules.
# X-LFS-Provided-By: LFS
### END INIT INFO
# Assure that the kernel has module support.
[ -e /proc/modules ] || exit 0
. /lib/lsb/init-functions
case "${1}" in
start)
# Exit if there's no modules file or there are no
# valid entries
[ -r /etc/sysconfig/modules ] || exit 0
egrep -qv '^($|#)' /etc/sysconfig/modules || exit 0
log_info_msg "Loading modules:"
# Only try to load modules if the user has actually given us
# some modules to load.
while read module args; do
# Ignore comments and blank lines.
case "$module" in
""|"#"*) continue ;;
esac
# Attempt to load the module, passing any arguments provided.
modprobe ${module} ${args} >/dev/null
# Print the module name if successful, otherwise take note.
if [ $? -eq 0 ]; then
log_info_msg2 " ${module}"
else
failedmod="${failedmod} ${module}"
fi
done < /etc/sysconfig/modules
# Print a message about successfully loaded modules on the correct line.
log_success_msg2
# Print a failure message with a list of any modules that
# may have failed to load.
if [ -n "${failedmod}" ]; then
log_failure_msg "Failed to load modules:${failedmod}"
exit 1
fi
;;
*)
echo "Usage: ${0} {start}"
exit 1
;;
esac
exit 0
# End modules
#!/bin/sh
########################################################################
# Begin udev
#
# Description : Udev cold-plugging script
#
# Authors : Zack Winkles, Alexander E. Patrakov
# DJ Lucas - dj AT linuxfromscratch D0T org
# Update : Bruce Dubbs - bdubbs AT linuxfromscratch D0T org
#
# Version : LFS 7.0
#
########################################################################
### BEGIN INIT INFO
# Provides: udev $time
# Required-Start:
# Should-Start: modules
# Required-Stop:
# Should-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Populates /dev with device nodes.
# Description: Mounts a tempfs on /dev and starts the udevd daemon.
# Device nodes are created as defined by udev.
# X-LFS-Provided-By: LFS
### END INIT INFO
. /lib/lsb/init-functions
case "${1}" in
start)
log_info_msg "Populating /dev with device nodes... "
if ! grep -q '[[:space:]]sysfs' /proc/mounts; then
log_failure_msg2
msg="FAILURE:\n\nUnable to create "
msg="${msg}devices without a SysFS filesystem\n\n"
msg="${msg}After you press Enter, this system "
msg="${msg}will be halted and powered off.\n\n"
log_info_msg "$msg"
log_info_msg "Press Enter to continue..."
wait_for_user
/etc/rc.d/init.d/halt stop
fi
# Start the udev daemon to continually watch for, and act on,
# uevents
/sbin/udevd --daemon
# Now traverse /sys in order to "coldplug" devices that have
# already been discovered
/sbin/udevadm trigger --action=add --type=subsystems
/sbin/udevadm trigger --action=add --type=devices
/sbin/udevadm trigger --action=change --type=devices
# Now wait for udevd to process the uevents we triggered
if ! is_true "$OMIT_UDEV_SETTLE"; then
/sbin/udevadm settle
fi
# If any LVM based partitions are on the system, ensure they
# are activated so they can be used.
if [ -x /sbin/vgchange ]; then /sbin/vgchange -a y >/dev/null; fi
log_success_msg2
;;
*)
echo "Usage ${0} {start}"
exit 1
;;
esac
exit 0
# End udev
#!/bin/sh
########################################################################
# Begin swap
#
# Description : Swap Control Script
#
# Authors : Gerard Beekmans - gerard AT linuxfromscratch D0T org
# DJ Lucas - dj AT linuxfromscratch D0T org
# Update : Bruce Dubbs - bdubbs AT linuxfromscratch D0T org
#
# Version : LFS 7.0
#
########################################################################
### BEGIN INIT INFO
# Provides: swap
# Required-Start: udev
# Should-Start: modules
# Required-Stop: localnet
# Should-Stop:
# Default-Start: S
# Default-Stop: 0 6
# Short-Description: Mounts and unmounts swap partitions.
# Description: Mounts and unmounts swap partitions defined in
# /etc/fstab.
# X-LFS-Provided-By: LFS
### END INIT INFO
. /lib/lsb/init-functions
case "${1}" in
start)
log_info_msg "Activating all swap files/partitions..."
swapon -a
evaluate_retval
;;
stop)
log_info_msg "Deactivating all swap files/partitions..."
swapoff -a
evaluate_retval
;;
restart)
${0} stop
sleep 1
${0} start
;;
status)
log_success_msg "Retrieving swap status."
swapon -s
;;
*)
echo "Usage: ${0} {start|stop|restart|status}"
exit 1
;;
esac
exit 0
# End swap
#!/bin/sh
########################################################################
# Begin setclock
#
# Description : Setting Linux Clock
#
# Authors : Gerard Beekmans - gerard AT linuxfromscratch D0T org
# DJ Lucas - dj AT linuxfromscratch D0T org
# Update : Bruce Dubbs - bdubbs AT linuxfromscratch D0T org
#
# Version : LFS 7.0
#
########################################################################
### BEGIN INIT INFO
# Provides:
# Required-Start:
# Should-Start: modules
# Required-Stop:
# Should-Stop: $syslog
# Default-Start: S
# Default-Stop:
# Short-Description: Stores and restores time from the hardware clock
# Description: On boot, system time is obtained from hwclock. The
# hardware clock can also be set on shutdown.
# X-LFS-Provided-By: LFS BLFS
### END INIT INFO
. /lib/lsb/init-functions
[ -r /etc/sysconfig/clock ] && . /etc/sysconfig/clock
case "${UTC}" in
yes|true|1)
CLOCKPARAMS="${CLOCKPARAMS} --utc"
;;
no|false|0)
CLOCKPARAMS="${CLOCKPARAMS} --localtime"
;;
esac
case ${1} in
start)
hwclock --hctosys ${CLOCKPARAMS} >/dev/null
;;
stop)
log_info_msg "Setting hardware clock..."
hwclock --systohc ${CLOCKPARAMS} >/dev/null
evaluate_retval
;;
*)
echo "Usage: ${0} {start|stop}"
exit 1
;;
esac
exit 0
#!/bin/sh
########################################################################
# Begin checkfs
#
# Description : File System Check
#
# Authors : Gerard Beekmans - gerard AT linuxfromscratch D0T org
# A. Luebke - [email protected]
# DJ Lucas - dj AT linuxfromscratch D0T org
# Update : Bruce Dubbs - bdubbs AT linuxfromscratch D0T org
#
# Version : LFS 7.0
#
# Based on checkfs script from LFS-3.1 and earlier.
#
# From man fsck
# 0 - No errors
# 1 - File system errors corrected
# 2 - System should be rebooted
# 4 - File system errors left uncorrected
# 8 - Operational error
# 16 - Usage or syntax error
# 32 - Fsck canceled by user request
# 128 - Shared library error
#
#########################################################################
### BEGIN INIT INFO
# Provides: checkfs
# Required-Start: udev swap $time
# Should-Start:
# Required-Stop:
# Should-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Checks local filesystems before mounting.
# Description: Checks local filesystmes before mounting.
# X-LFS-Provided-By: LFS
### END INIT INFO
. /lib/lsb/init-functions
case "${1}" in
start)
if [ -f /fastboot ]; then
msg="/fastboot found, will omit "
msg="${msg} file system checks as requested.\n"
log_info_msg "${msg}"
exit 0
fi
log_info_msg "Mounting root file system in read-only mode... "
mount -n -o remount,ro / >/dev/null
if [ ${?} != 0 ]; then
log_failure_msg2
msg="\n\nCannot check root "
msg="${msg}filesystem because it could not be mounted "
msg="${msg}in read-only mode.\n\n"
msg="${msg}After you press Enter, this system will be "
msg="${msg}halted and powered off.\n\n"
log_failure_msg "${msg}"
log_info_msg "Press Enter to continue..."
wait_for_user
/etc/rc.d/init.d/halt stop
else
log_success_msg2
fi
if [ -f /forcefsck ]; then
msg="/forcefsck found, forcing file"
msg="${msg} system checks as requested."
log_success_msg "$msg"
options="-f"
else
options=""
fi
log_info_msg "Checking file systems..."
# Note: -a option used to be -p; but this fails e.g. on fsck.minix
if is_true "$VERBOSE_FSCK"; then
fsck ${options} -a -A -C -T
else
fsck ${options} -a -A -C -T >/dev/null
fi
error_value=${?}
if [ "${error_value}" = 0 ]; then
log_success_msg2
fi
if [ "${error_value}" = 1 ]; then
msg="\nWARNING:\n\nFile system errors "
msg="${msg}were found and have been corrected.\n"
msg="${msg} You may want to double-check that "
msg="${msg}everything was fixed properly."
log_warning_msg "$msg"
fi
if [ "${error_value}" = 2 -o "${error_value}" = 3 ]; then
msg="\nWARNING:\n\nFile system errors "
msg="${msg}were found and have been been "
msg="${msg}corrected, but the nature of the "
msg="${msg}errors require this system to be rebooted.\n\n"
msg="${msg}After you press enter, "
msg="${msg}this system will be rebooted\n\n"
log_failure_msg "$msg"
log_info_msg "Press Enter to continue..."
wait_for_user
reboot -f
fi
if [ "${error_value}" -gt 3 -a "${error_value}" -lt 16 ]; then
msg="\nFAILURE:\n\nFile system errors "
msg="${msg}were encountered that could not be "
msg="${msg}fixed automatically.\nThis system "
msg="${msg}cannot continue to boot and will "
msg="${msg}therefore be halted until those "
msg="${msg}errors are fixed manually by a "
msg="${msg}System Administrator.\n\n"
msg="${msg}After you press Enter, this system will be "
msg="${msg}halted and powered off.\n\n"
log_failure_msg "$msg"
log_info_msg "Press Enter to continue..."
wait_for_user
/etc/rc.d/init.d/halt stop
fi
if [ "${error_value}" -ge 16 ]; then
msg="FAILURE:\n\nUnexpected failure "
msg="${msg}running fsck. Exited with error "
msg="${msg} code: ${error_value}.\n"
log_info_msg $msg
exit ${error_value}
fi
exit 0
;;
*)
echo "Usage: ${0} {start}"
exit 1
;;
esac
# End checkfs
#!/bin/sh
########################################################################
# Begin mountfs
#
# Description : File System Mount Script
#
# Authors : Gerard Beekmans - gerard AT linuxfromscratch D0T org
# DJ Lucas - dj AT linuxfromscratch D0T org
# Update : Bruce Dubbs - bdubbs AT linuxfromscratch D0T org
#
# Version : LFS 7.0
#
########################################################################
### BEGIN INIT INFO
# Provides: $local_fs
# Required-Start: udev checkfs
# Should-Start:
# Required-Stop: swap
# Should-Stop:
# Default-Start: S
# Default-Stop: 0 6
# Short-Description: Mounts/unmounts local filesystems defined in /etc/fstab.
# Description: Remounts root filesystem read/write and mounts all
# remaining local filesystems defined in /etc/fstab on
# start. Remounts root filesystem read-only and unmounts
# remaining filesystems on stop.
# X-LFS-Provided-By: LFS
### END INIT INFO
. /lib/lsb/init-functions
case "${1}" in
start)
log_info_msg "Remounting root file system in read-write mode..."
mount --options remount,rw / >/dev/null
evaluate_retval
# Remove fsck-related file system watermarks.
rm -f /fastboot /forcefsck
# Make sure /dev/pts exists
mkdir -p /dev/pts
# This will mount all filesystems that do not have _netdev in
# their option list. _netdev denotes a network filesystem.
log_info_msg "Mounting remaining file systems..."
mount --all --test-opts no_netdev >/dev/null
evaluate_retval
exit $failed
;;
stop)
# Don't unmount virtual file systems like /run
log_info_msg "Unmounting all other currently mounted file systems..."
umount --all --detach-loop --read-only \
--types notmpfs,nosysfs,nodevtmpfs,noproc,nodevpts >/dev/null
evaluate_retval
# Make sure / is mounted read only (umount bug)
mount --options remount,ro /
# Make all LVM volume groups unavailable, if appropriate
# This fails if swap or / are on an LVM partition
#if [ -x /sbin/vgchange ]; then /sbin/vgchange -an > /dev/null; fi
;;
*)
echo "Usage: ${0} {start|stop}"
exit 1
;;
esac
# End mountfs
#!/bin/sh
########################################################################
# Begin udev_retry
#
# Description : Udev cold-plugging script (retry)
#
# Authors : Alexander E. Patrakov
# DJ Lucas - dj AT linuxfromscratch D0T org
# Update : Bruce Dubbs - bdubbs AT linuxfromscratch D0T org
# Bryan Kadzban -
#
# Version : LFS 7.0
#
########################################################################
### BEGIN INIT INFO
# Provides: udev_retry
# Required-Start: udev
# Should-Start: $local_fs
# Required-Stop:
# Should-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Replays failed uevents and creates additional devices.
# Description: Replays any failed uevents that were skipped due to
# slow hardware initialization, and creates those needed
# device nodes
# X-LFS-Provided-By: LFS
### END INIT INFO
. /lib/lsb/init-functions
case "${1}" in
start)
log_info_msg "Retrying failed uevents, if any..."
# As of udev-186, the --run option is no longer valid
#rundir=$(/sbin/udevadm info --run)
rundir=/run/udev
# From Debian: "copy the rules generated before / was mounted
# read-write":
for file in ${rundir}/tmp-rules--*; do
dest=${file##*tmp-rules--}
[ "$dest" = '*' ] && break
cat $file >> /etc/udev/rules.d/$dest
rm -f $file
done
# Re-trigger the uevents that may have failed,
# in hope they will succeed now
/bin/sed -e 's/#.*$//' /etc/sysconfig/udev_retry | /bin/grep -v '^$' | \
while read line ; do
for subsystem in $line ; do
/sbin/udevadm trigger --subsystem-match=$subsystem --action=add
done
done
# Now wait for udevd to process the uevents we triggered
if ! is_true "$OMIT_UDEV_RETRY_SETTLE"; then
/sbin/udevadm settle
fi
evaluate_retval
;;
*)
echo "Usage ${0} {start}"
exit 1
;;
esac
exit 0
# End udev_retry
#!/bin/sh
########################################################################
# Begin cleanfs
#
# Description : Clean file system
#
# Authors : Gerard Beekmans - gerard AT linuxfromscratch D0T org
# DJ Lucas - dj AT linuxfromscratch D0T org
# Update : Bruce Dubbs - bdubbs AT linuxfromscratch D0T org
#
# Version : LFS 7.0
#
########################################################################
### BEGIN INIT INFO
# Provides: cleanfs
# Required-Start: $local_fs
# Should-Start:
# Required-Stop:
# Should-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Cleans temporary directories early in the boot process.
# Description: Cleans temporary directories /var/run, /var/lock, and
# optionally, /tmp. cleanfs also creates /var/run/utmp
# and any files defined in /etc/sysconfig/createfiles.
# X-LFS-Provided-By: LFS
### END INIT INFO
. /lib/lsb/init-functions
# Function to create files/directory on boot.
create_files()
{
# Input to file descriptor 9 and output to stdin (redirection)
exec 9>&0 < /etc/sysconfig/createfiles
while read name type perm usr grp dtype maj min junk
do
# Ignore comments and blank lines.
case "${name}" in
""|\#*) continue ;;
esac
# Ignore existing files.
if [ ! -e "${name}" ]; then
# Create stuff based on its type.
case "${type}" in
dir)
mkdir "${name}"
;;
file)
:> "${name}"
;;
dev)
case "${dtype}" in
char)
mknod "${name}" c ${maj} ${min}
;;
block)
mknod "${name}" b ${maj} ${min}
;;
pipe)
mknod "${name}" p
;;
*)
log_warning_msg "\nUnknown device type: ${dtype}"
;;
esac
;;
*)
log_warning_msg "\nUnknown type: ${type}"
continue
;;
esac
# Set up the permissions, too.
chown ${usr}:${grp} "${name}"
chmod ${perm} "${name}"
fi
done
# Close file descriptor 9 (end redirection)
exec 0>&9 9>&-
return 0
}
case "${1}" in
start)
log_info_msg "Cleaning file systems:"
if [ "${SKIPTMPCLEAN}" = "" ]; then
log_info_msg2 " /tmp"
cd /tmp &&
find . -xdev -mindepth 1 ! -name lost+found -delete || failed=1
fi
> /var/run/utmp
if grep -q '^utmp:' /etc/group ; then
chmod 664 /var/run/utmp
chgrp utmp /var/run/utmp
fi
(exit ${failed})
evaluate_retval
if egrep -qv '^(#|$)' /etc/sysconfig/createfiles 2>/dev/null; then
log_info_msg "Creating files and directories... "
create_files # Always returns 0
evaluate_retval
fi
exit $failed
;;
*)
echo "Usage: ${0} {start}"
exit 1
;;
esac
# End cleanfs
#!/bin/sh
########################################################################
# Begin console
#
# Description : Sets keymap and screen font
#
# Authors : Gerard Beekmans - gerard AT linuxfromscratch D0T org
# Alexander E. Patrakov
# DJ Lucas - dj AT linuxfromscratch D0T org
# Update : Bruce Dubbs - bdubbs AT linuxfromscratch D0T org
#
# Version : LFS 7.0
#
########################################################################
### BEGIN INIT INFO
# Provides: console
# Required-Start:
# Should-Start: $local_fs
# Required-Stop:
# Should-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Sets up a localised console.
# Description: Sets up fonts and language settings for the user's
# local as defined by /etc/sysconfig/console.
# X-LFS-Provided-By: LFS
### END INIT INFO
. /lib/lsb/init-functions
# Native English speakers probably don't have /etc/sysconfig/console at all
[ -r /etc/sysconfig/console ] && . /etc/sysconfig/console
is_true()
{
[ "$1" = "1" ] || [ "$1" = "yes" ] || [ "$1" = "true" ]
}
failed=0
case "${1}" in
start)
# See if we need to do anything
if [ -z "${KEYMAP}" ] && [ -z "${KEYMAP_CORRECTIONS}" ] &&
[ -z "${FONT}" ] && [ -z "${LEGACY_CHARSET}" ] &&
! is_true "${UNICODE}"; then
exit 0
fi
# There should be no bogus failures below this line!
log_info_msg "Setting up Linux console..."
# Figure out if a framebuffer console is used
[ -d /sys/class/graphics/fb0 ] && use_fb=1 || use_fb=0
# Figure out the command to set the console into the
# desired mode
is_true "${UNICODE}" &&
MODE_COMMAND="echo -en '\033%G' && kbd_mode -u" ||
MODE_COMMAND="echo -en '\033%@\033(K' && kbd_mode -a"
# On framebuffer consoles, font has to be set for each vt in
# UTF-8 mode. This doesn't hurt in non-UTF-8 mode also.
! is_true "${use_fb}" || [ -z "${FONT}" ] ||
MODE_COMMAND="${MODE_COMMAND} && setfont ${FONT}"
# Apply that command to all consoles mentioned in
# /etc/inittab. Important: in the UTF-8 mode this should
# happen before setfont, otherwise a kernel bug will
# show up and the unicode map of the font will not be
# used.
for TTY in `grep '^[^#].*respawn:/sbin/agetty' /etc/inittab |
grep -o '\btty[[:digit:]]*\b'`
do
openvt -f -w -c ${TTY#tty} -- \
/bin/sh -c "${MODE_COMMAND}" || failed=1
done
# Set the font (if not already set above) and the keymap
[ "${use_fb}" == "1" ] || [ -z "${FONT}" ] || setfont $FONT || failed=1
[ -z "${KEYMAP}" ] ||
loadkeys ${KEYMAP} >/dev/null 2>&1 ||
failed=1
[ -z "${KEYMAP_CORRECTIONS}" ] ||
loadkeys ${KEYMAP_CORRECTIONS} >/dev/null 2>&1 ||
failed=1
# Convert the keymap from $LEGACY_CHARSET to UTF-8
[ -z "$LEGACY_CHARSET" ] ||
dumpkeys -c "$LEGACY_CHARSET" | loadkeys -u >/dev/null 2>&1 ||
failed=1
# If any of the commands above failed, the trap at the
# top would set $failed to 1
( exit $failed )
evaluate_retval
exit $failed
;;
*)
echo "Usage: ${0} {start}"
exit 1
;;
esac
# End console
#!/bin/sh
########################################################################
# Begin localnet
#
# Description : Loopback device
#
# Authors : Gerard Beekmans - gerard AT linuxfromscratch D0T org
# DJ Lucas - dj AT linuxfromscratch D0T org
# Update : Bruce Dubbs - bdubbs AT linuxfromscratch D0T org
#
# Version : LFS 7.0
#
########################################################################
### BEGIN INIT INFO
# Provides: localnet
# Required-Start: $local_fs
# Should-Start:
# Required-Stop:
# Should-Stop:
# Default-Start: S
# Default-Stop: 0 6
# Short-Description: Starts the local network.
# Description: Sets the hostname of the machine and starts the
# loopback interface.
# X-LFS-Provided-By: LFS
### END INIT INFO
. /lib/lsb/init-functions
[ -r /etc/sysconfig/network ] && . /etc/sysconfig/network
[ -r /etc/hostname ] && HOSTNAME=`cat /etc/hostname`
case "${1}" in
start)
log_info_msg "Bringing up the loopback interface..."
ip addr add 127.0.0.1/8 label lo dev lo
ip link set lo up
evaluate_retval
log_info_msg "Setting hostname to ${HOSTNAME}..."
hostname ${HOSTNAME}
evaluate_retval
;;
stop)
log_info_msg "Bringing down the loopback interface..."
ip link set lo down
evaluate_retval
;;
restart)
${0} stop
sleep 1
${0} start
;;
status)
echo "Hostname is: $(hostname)"
ip link show lo
;;
*)
echo "Usage: ${0} {start|stop|restart|status}"
exit 1
;;
esac
exit 0
# End localnet
#!/bin/sh
########################################################################
# Begin sysctl
#
# Description : File uses /etc/sysctl.conf to set kernel runtime
# parameters
#
# Authors : Nathan Coulson (nathan AT linuxfromscratch D0T org)
# Matthew Burgress (matthew AT linuxfromscratch D0T org)
# DJ Lucas - dj AT linuxfromscratch D0T org
# Update : Bruce Dubbs - bdubbs AT linuxfromscratch D0T org
#
# Version : LFS 7.0
#
########################################################################
### BEGIN INIT INFO
# Provides: sysctl
# Required-Start: mountvirtfs
# Should-Start:
# Required-Stop:
# Should-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Makes changes to the proc filesystem
# Description: Makes changes to the proc filesystem as defined in
# /etc/sysctl.conf. See 'man sysctl(8)'.
# X-LFS-Provided-By: LFS
### END INIT INFO
. /lib/lsb/init-functions
case "${1}" in
start)
if [ -f "/etc/sysctl.conf" ]; then
log_info_msg "Setting kernel runtime parameters..."
sysctl -q -p
evaluate_retval
fi
;;
status)
sysctl -a
;;
*)
echo "Usage: ${0} {start|status}"
exit 1
;;
esac
exit 0
# End sysctl
#!/bin/sh
########################################################################
# Begin sysklogd
#
# Description : Sysklogd loader
#
# Authors : Gerard Beekmans - gerard AT linuxfromscratch D0T org
# DJ Lucas - dj AT linuxfromscratch D0T org
# Update : Bruce Dubbs - bdubbs AT linuxfromscratch D0T org
#
# Version : LFS 7.0
#
########################################################################
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: localnet
# Should-Start:
# Required-Stop: $local_fs sendsignals
# Should-Stop:
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts kernel and system log daemons.
# Description: Starts kernel and system log daemons.
# /etc/fstab.
# X-LFS-Provided-By: LFS
### END INIT INFO
# Note: sysklogd is not started in runlevel 2 due to possible
# remote logging configurations
. /lib/lsb/init-functions
case "${1}" in
start)
log_info_msg "Starting system log daemon..."
parms=${SYSKLOGD_PARMS-'-m 0'}
start_daemon /sbin/syslogd $parms
evaluate_retval
log_info_msg "Starting kernel log daemon..."
start_daemon /sbin/klogd
evaluate_retval
;;
stop)
log_info_msg "Stopping kernel log daemon..."
killproc /sbin/klogd
evaluate_retval
log_info_msg "Stopping system log daemon..."
killproc /sbin/syslogd
evaluate_retval
;;
reload)
log_info_msg "Reloading system log daemon config file..."
pid=`pidofproc syslogd`
kill -HUP "${pid}"
evaluate_retval
;;
restart)
${0} stop
sleep 1
${0} start
;;
status)
statusproc /sbin/syslogd
statusproc klogd
;;
*)
echo "Usage: ${0} {start|stop|reload|restart|status}"
exit 1
;;
esac
exit 0
# End sysklogd
#!/bin/sh
########################################################################
# Begin network
#
# Description : Network Control Script
#
# Authors : Gerard Beekmans - gerard AT linuxfromscratch D0T org
# Nathan Coulson - nathan AT linuxfromscratch D0T org
# Kevin P. Fleming - [email protected]
# DJ Lucas - dj AT linuxfromscratch D0T org
# Update : Bruce Dubbs - bdubbs AT linuxfromscratch D0T org
#
# Version : LFS 7.0
#
########################################################################
### BEGIN INIT INFO
# Provides: $network
# Required-Start: $local_fs swap localnet
# Should-Start: $syslog
# Required-Stop: $local_fs swap localnet
# Should-Stop: $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and configures network interfaces.
# Description: Starts and configures network interfaces.
# X-LFS-Provided-By: LFS
### END INIT INFO
case "${1}" in
start)
# Start all network interfaces
for file in /etc/sysconfig/ifconfig.*
do
interface=${file##*/ifconfig.}
# Skip if $file is * (because nothing was found)
if [ "${interface}" = "*" ]
then
continue
fi
/sbin/ifup ${interface}
done
;;
stop)
# Unmount any network mounted file systems
umount --all --force --types nfs,cifs,nfs4
# Reverse list
net_files=""
for file in /etc/sysconfig/ifconfig.*
do
net_files="${file} ${net_files}"
done
# Stop all network interfaces
for file in ${net_files}
do
interface=${file##*/ifconfig.}
# Skip if $file is * (because nothing was found)
if [ "${interface}" = "*" ]
then
continue
fi
/sbin/ifdown ${interface}
done
;;
restart)
${0} stop
sleep 1
${0} start
;;
*)
echo "Usage: ${0} {start|stop|restart}"
exit 1
;;
esac
exit 0
# End network
#!/bin/sh
########################################################################
# Begin sendsignals
#
# Description : Sendsignals Script
#
# Authors : Gerard Beekmans - gerard AT linuxfromscratch D0T org
# DJ Lucas - dj AT linuxfromscratch D0T org
# Update : Bruce Dubbs - bdubbs AT linuxfromscratch D0T org
#
# Version : LFS 7.0
#
########################################################################
### BEGIN INIT INFO
# Provides: sendsignals
# Required-Start:
# Should-Start:
# Required-Stop: $local_fs swap localnet
# Should-Stop:
# Default-Start:
# Default-Stop: 0 6
# Short-Description: Attempts to kill remaining processes.
# Description: Attempts to kill remaining processes.
# X-LFS-Provided-By: LFS
### END INIT INFO
. /lib/lsb/init-functions
case "${1}" in
stop)
log_info_msg "Sending all processes the TERM signal..."
killall5 -15
error_value=${?}
sleep ${KILLDELAY}
if [ "${error_value}" = 0 -o "${error_value}" = 2 ]; then
log_success_msg
else
log_failure_msg
fi
log_info_msg "Sending all processes the KILL signal..."
killall5 -9
error_value=${?}
sleep ${KILLDELAY}
if [ "${error_value}" = 0 -o "${error_value}" = 2 ]; then
log_success_msg
else
log_failure_msg
fi
;;
*)
echo "Usage: ${0} {stop}"
exit 1
;;
esac
exit 0
# End sendsignals
#!/bin/sh
########################################################################
# Begin reboot
#
# Description : Reboot Scripts
#
# Authors : Gerard Beekmans - gerard AT linuxfromscratch D0T org
# DJ Lucas - dj AT linuxfromscratch D0T org
# Update : Bruce Dubbs - bdubbs AT linuxfromscratch D0T org
#
# Version : LFS 7.0
#
########################################################################
### BEGIN INIT INFO
# Provides: reboot
# Required-Start:
# Should-Start:
# Required-Stop:
# Should-Stop:
# Default-Start: 6
# Default-Stop:
# Short-Description: Reboots the system.
# Description: Reboots the System.
# X-LFS-Provided-By: LFS
### END INIT INFO
. /lib/lsb/init-functions
case "${1}" in
stop)
log_info_msg "Restarting system..."
reboot -d -f -i
;;
*)
echo "Usage: ${0} {stop}"
exit 1
;;
esac
# End reboot
#!/bin/sh
########################################################################
# Begin halt
#
# Description : Halt Script
#
# Authors : Gerard Beekmans - gerard AT linuxfromscratch D0T org
# DJ Lucas - dj AT linuxfromscratch D0T org
# Update : Bruce Dubbs - bdubbs AT linuxfromscratch D0T org
#
# Version : LFS 7.0
#
########################################################################
### BEGIN INIT INFO
# Provides: halt
# Required-Start:
# Should-Start:
# Required-Stop:
# Should-Stop:
# Default-Start: 0
# Default-Stop:
# Short-Description: Halts the system.
# Description: Halts the System.
# X-LFS-Provided-By: LFS
### END INIT INFO
case "${1}" in
stop)
halt -d -f -i -p
;;
*)
echo "Usage: {stop}"
exit 1
;;
esac
# End halt
#!/bin/sh
########################################################################
# Begin scriptname
#
# Description :
#
# Authors :
#
# Version : LFS x.x
#
# Notes :
#
########################################################################
### BEGIN INIT INFO
# Provides: template
# Required-Start:
# Should-Start:
# Required-Stop:
# Should-Stop:
# Default-Start:
# Default-Stop:
# Short-Description:
# Description:
# X-LFS-Provided-By:
### END INIT INFO
. /lib/lsb/init-functions
case "${1}" in
start)
log_info_msg "Starting..."
start_daemon fully_qualified_path
;;
stop)
log_info_msg "Stopping..."
killproc fully_qualified_path
;;
restart)
${0} stop
sleep 1
${0} start
;;
*)
echo "Usage: ${0} {start|stop|restart}"
exit 1
;;
esac
exit 0
# End scriptname
########################################################################
# Begin /etc/sysconfig/modules
#
# Description : Module auto-loading configuration
#
# Authors :
#
# Version : 00.00
#
# Notes : The syntax of this file is as follows:
# <module> [<arg1> <arg2> ...]
#
# Each module should be on its own line, and any options that you want
# passed to the module should follow it. The line deliminator is either
# a space or a tab.
########################################################################
# End /etc/sysconfig/modules
########################################################################
# Begin /etc/sysconfig/createfiles
#
# Description : Createfiles script config file
#
# Authors :
#
# Version : 00.00
#
# Notes : The syntax of this file is as follows:
# if type is equal to "file" or "dir"
# <filename> <type> <permissions> <user> <group>
# if type is equal to "dev"
# <filename> <type> <permissions> <user> <group> <devtype>
# <major> <minor>
#
# <filename> is the name of the file which is to be created
# <type> is either file, dir, or dev.
# file creates a new file
# dir creates a new directory
# dev creates a new device
# <devtype> is either block, char or pipe
# block creates a block device
# char creates a character deivce
# pipe creates a pipe, this will ignore the <major> and
# <minor> fields
# <major> and <minor> are the major and minor numbers used for
# the device.
########################################################################
# End /etc/sysconfig/createfiles
########################################################################
# Begin /etc/sysconfig/udev_retry
#
# Description : udev_retry script configuration
#
# Authors :
#
# Version : 00.00
#
# Notes : Each subsystem that may need to be re-triggered after mountfs
# runs should be listed in this file. Probable subsystems to be
# listed here are rtc (due to /var/lib/hwclock/adjtime) and sound
# (due to both /var/lib/alsa/asound.state and /usr/sbin/alsactl).
# Entries are whitespace-separated.
########################################################################
rtc
# End /etc/sysconfig/udev_retry
#!/bin/sh
########################################################################
# Begin /sbin/ifup
#
# Description : Interface Up
#
# Authors : Nathan Coulson - nathan AT linuxfromscratch D0T org
# Kevin P. Fleming - [email protected]
# Update : Bruce Dubbs - bdubbs AT linuxfromscratch D0T org
#
# Version : LFS 7.7
#
# Notes : The IFCONFIG variable is passed to the SERVICE script
# in the /lib/services directory, to indicate what file the
# service should source to get interface specifications.
#
########################################################################
up()
{
if ip link show $1 > /dev/null 2>&1; then
link_status=`ip link show $1`
if [ -n "${link_status}" ]; then
if ! echo "${link_status}" | grep -q UP; then
ip link set $1 up
fi
fi
else
log_failure_msg "\nInterface ${IFACE} doesn't exist."
exit 1
fi
}
RELEASE="7.7"
USAGE="Usage: $0 [ -hV ] [--help] [--version] interface"
VERSTR="LFS ifup, version ${RELEASE}"
while [ $# -gt 0 ]; do
case "$1" in
--help | -h) help="y"; break ;;
--version | -V) echo "${VERSTR}"; exit 0 ;;
-*) echo "ifup: ${1}: invalid option" >&2
echo "${USAGE}" >& 2
exit 2 ;;
*) break ;;
esac
done
if [ -n "$help" ]; then
echo "${VERSTR}"
echo "${USAGE}"
echo
cat << HERE_EOF
ifup is used to bring up a network interface. The interface
parameter, e.g. eth0 or eth0:2, must match the trailing part of the
interface specifications file, e.g. /etc/sysconfig/ifconfig.eth0:2.
HERE_EOF
exit 0
fi
file=/etc/sysconfig/ifconfig.${1}
# Skip backup files
[ "${file}" = "${file%""~""}" ] || exit 0
. /lib/lsb/init-functions
log_info_msg "Bringing up the ${1} interface... "
if [ ! -r "${file}" ]; then
log_failure_msg2 "${file} is missing or cannot be accessed."
exit 1
fi
. $file
if [ "$IFACE" = "" ]; then
log_failure_msg2 "${file} does not define an interface [IFACE]."
exit 1
fi
# Do not process this service if started by boot, and ONBOOT
# is not set to yes
if [ "${IN_BOOT}" = "1" -a "${ONBOOT}" != "yes" ]; then
log_skip_msg
exit 0
fi
for S in ${SERVICE}; do
if [ ! -x "/lib/services/${S}" ]; then
MSG="\nUnable to process ${file}. Either "
MSG="${MSG}the SERVICE '${S} was not present "
MSG="${MSG}or cannot be executed."
log_failure_msg "$MSG"
exit 1
fi
done
if [ "${SERVICE}" = "wpa" ]; then log_success_msg; fi
# Create/configure the interface
for S in ${SERVICE}; do
IFCONFIG=${file} /lib/services/${S} ${IFACE} up
done
# Bring up the interface and any components
for I in $IFACE $INTERFACE_COMPONENTS; do up $I; done
# Set MTU if requested. Check if MTU has a "good" value.
if test -n "${MTU}"; then
if [[ ${MTU} =~ ^[0-9]+$ ]] && [[ $MTU -ge 68 ]] ; then
for I in $IFACE $INTERFACE_COMPONENTS; do
ip link set dev $I mtu $MTU;
done
else
log_info_msg2 "Invalid MTU $MTU"
fi
fi
# Set the route default gateway if requested
if [ -n "${GATEWAY}" ]; then
if ip route | grep -q default; then
log_skip_msg "\n Gateway already setup; skipping."
else
log_info_msg "Setting up default gateway..."
ip route add default via ${GATEWAY} dev ${IFACE}
evaluate_retval
fi
fi
# End /sbin/ifup
#!/bin/bash
########################################################################
# Begin /sbin/ifdown
#
# Description : Interface Down
#
# Authors : Nathan Coulson - nathan AT linuxfromscratch D0T org
# Kevin P. Fleming - [email protected]
# Update : Bruce Dubbs - bdubbs AT linuxfromscratch D0T org
#
# Version : LFS 7.0
#
# Notes : the IFCONFIG variable is passed to the scripts found
# in the /lib/services directory, to indicate what file the
# service should source to get interface specifications.
#
########################################################################
RELEASE="7.0"
USAGE="Usage: $0 [ -hV ] [--help] [--version] interface"
VERSTR="LFS ifdown, version ${RELEASE}"
while [ $# -gt 0 ]; do
case "$1" in
--help | -h) help="y"; break ;;
--version | -V) echo "${VERSTR}"; exit 0 ;;
-*) echo "ifup: ${1}: invalid option" >&2
echo "${USAGE}" >& 2
exit 2 ;;
*) break ;;
esac
done
if [ -n "$help" ]; then
echo "${VERSTR}"
echo "${USAGE}"
echo
cat << HERE_EOF
ifdown is used to bring down a network interface. The interface
parameter, e.g. eth0 or eth0:2, must match the trailing part of the
interface specifications file, e.g. /etc/sysconfig/ifconfig.eth0:2.
HERE_EOF
exit 0
fi
file=/etc/sysconfig/ifconfig.${1}
# Skip backup files
[ "${file}" = "${file%""~""}" ] || exit 0
. /lib/lsb/init-functions
if [ ! -r "${file}" ]; then
log_warning_msg "${file} is missing or cannot be accessed."
exit 1
fi
. ${file}
if [ "$IFACE" = "" ]; then
log_failure_msg "${file} does not define an interface [IFACE]."
exit 1
fi
# We only need to first service to bring down the interface
S=`echo ${SERVICE} | cut -f1 -d" "`
if ip link show ${IFACE} > /dev/null 2>&1; then
if [ -n "${S}" -a -x "/lib/services/${S}" ]; then
IFCONFIG=${file} /lib/services/${S} ${IFACE} down
else
MSG="Unable to process ${file}. Either "
MSG="${MSG}the SERVICE variable was not set "
MSG="${MSG}or the specified service cannot be executed."
log_failure_msg "$MSG"
exit 1
fi
else
log_warning_msg "Interface ${1} doesn't exist."
fi
# Leave the interface up if there are additional interfaces in the device
link_status=`ip link show ${IFACE} 2>/dev/null`
if [ -n "${link_status}" ]; then
if [ "$(echo "${link_status}" | grep UP)" != "" ]; then
if [ "$(ip addr show ${IFACE} | grep 'inet ')" == "" ]; then
log_info_msg "Bringing down the ${IFACE} interface..."
ip link set ${IFACE} down
evaluate_retval
fi
fi
fi
# End /sbin/ifdown
#!/bin/sh
########################################################################
# Begin /lib/services/ipv4-static
#
# Description : IPV4 Static Boot Script
#
# Authors : Nathan Coulson - nathan AT linuxfromscratch D0T org
# Kevin P. Fleming - [email protected]
# Update : Bruce Dubbs - bdubbs AT linuxfromscratch D0T org
#
# Version : LFS 7.0
#
########################################################################
. /lib/lsb/init-functions
. ${IFCONFIG}
if [ -z "${IP}" ]; then
log_failure_msg "\nIP variable missing from ${IFCONFIG}, cannot continue."
exit 1
fi
if [ -z "${PREFIX}" -a -z "${PEER}" ]; then
log_warning_msg "\nPREFIX variable missing from ${IFCONFIG}, assuming 24."
PREFIX=24
args="${args} ${IP}/${PREFIX}"
elif [ -n "${PREFIX}" -a -n "${PEER}" ]; then
log_failure_msg "\nPREFIX and PEER both specified in ${IFCONFIG}, cannot continue."
exit 1
elif [ -n "${PREFIX}" ]; then
args="${args} ${IP}/${PREFIX}"
elif [ -n "${PEER}" ]; then
args="${args} ${IP} peer ${PEER}"
fi
if [ -n "${LABEL}" ]; then
args="${args} label ${LABEL}"
fi
if [ -n "${BROADCAST}" ]; then
args="${args} broadcast ${BROADCAST}"
fi
case "${2}" in
up)
if [ "$(ip addr show ${1} 2>/dev/null | grep ${IP}/)" = "" ]; then
# Cosmetic output
if ! $(echo ${SERVICE} | grep -q " "); then
log_info_msg2 "\n" # Terminate the previous message
fi
log_info_msg "Adding IPv4 address ${IP} to the ${1} interface..."
ip addr add ${args} dev ${1}
evaluate_retval
else
log_warning_msg "Cannot add IPv4 address ${IP} to ${1}. Already present."
fi
;;
down)
if [ "$(ip addr show ${1} 2>/dev/null | grep ${IP}/)" != "" ]; then
log_info_msg "Removing IPv4 address ${IP} from the ${1} interface..."
ip addr del ${args} dev ${1}
evaluate_retval
fi
if [ -n "${GATEWAY}" ]; then
# Only remove the gateway if there are no remaining ipv4 addresses
if [ "$(ip addr show ${1} 2>/dev/null | grep 'inet ')" != "" ]; then
log_info_msg "Removing default gateway..."
ip route del default
evaluate_retval
fi
fi
;;
*)
echo "Usage: ${0} [interface] {up|down}"
exit 1
;;
esac
# End /lib/services/ipv4-static
#!/bin/sh
########################################################################
# Begin /lib/services/ipv4-static-route
#
# Description : IPV4 Static Route Script
#
# Authors : Kevin P. Fleming - [email protected]
# DJ Lucas - dj AT linuxfromscratch D0T org
# Update : Bruce Dubbs - bdubbs AT linuxfromscratch D0T org
#
# Version : LFS 7.0
#
########################################################################
. /lib/lsb/init-functions
. ${IFCONFIG}
case "${TYPE}" in
("" | "network")
need_ip=1
need_gateway=1
;;
("default")
need_gateway=1
args="${args} default"
desc="default"
;;
("host")
need_ip=1
;;
("unreachable")
need_ip=1
args="${args} unreachable"
desc="unreachable "
;;
(*)
log_failure_msg "Unknown route type (${TYPE}) in ${IFCONFIG}, cannot continue."
exit 1
;;
esac
if [ -n "${GATEWAY}" ]; then
MSG="The GATEWAY variable cannot be set in ${IFCONFIG} for static routes.\n"
log_failure_msg "$MSG Use STATIC_GATEWAY only, cannot continue"
exit 1
fi
if [ -n "${need_ip}" ]; then
if [ -z "${IP}" ]; then
log_failure_msg "IP variable missing from ${IFCONFIG}, cannot continue."
exit 1
fi
if [ -z "${PREFIX}" ]; then
log_failure_msg "PREFIX variable missing from ${IFCONFIG}, cannot continue."
exit 1
fi
args="${args} ${IP}/${PREFIX}"
desc="${desc}${IP}/${PREFIX}"
fi
if [ -n "${need_gateway}" ]; then
if [ -z "${STATIC_GATEWAY}" ]; then
log_failure_msg "STATIC_GATEWAY variable missing from ${IFCONFIG}, cannot continue."
exit 1
fi
args="${args} via ${STATIC_GATEWAY}"
fi
if [ -n "${SOURCE}" ]; then
args="${args} src ${SOURCE}"
fi
case "${2}" in
up)
log_info_msg "Adding '${desc}' route to the ${1} interface..."
ip route add ${args} dev ${1}
evaluate_retval
;;
down)
log_info_msg "Removing '${desc}' route from the ${1} interface..."
ip route del ${args} dev ${1}
evaluate_retval
;;
*)
echo "Usage: ${0} [interface] {up|down}"
exit 1
;;
esac
# End /lib/services/ipv4-static-route
The rules in this appendix are listed for convenience. Installation is normally done via instructions in Section 6.65, “Eudev-3.2.2”.
# /etc/udev/rules.d/55-lfs.rules: Rule definitions for LFS.
# Core kernel devices
# This causes the system clock to be set as soon as /dev/rtc becomes available.
SUBSYSTEM=="rtc", ACTION=="add", MODE="0644", RUN+="/etc/rc.d/init.d/setclock start"
KERNEL=="rtc", ACTION=="add", MODE="0644", RUN+="/etc/rc.d/init.d/setclock start"
# Comms devices
KERNEL=="ippp[0-9]*", GROUP="dialout"
KERNEL=="isdn[0-9]*", GROUP="dialout"
KERNEL=="isdnctrl[0-9]*", GROUP="dialout"
KERNEL=="dcbri[0-9]*", GROUP="dialout"
This book is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 2.0 License.
Computer instructions may be extracted from the book under the MIT License.
Creative Commons Legal Code
Attribution-NonCommercial-ShareAlike 2.0
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM ITS USE.
License
THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
Definitions
"Collective Work" means a work, such as a periodical issue, anthology or encyclopedia, in which the Work in its entirety in unmodified form, along with a number of other contributions, constituting separate and independent works in themselves, are assembled into a collective whole. A work that constitutes a Collective Work will not be considered a Derivative Work (as defined below) for the purposes of this License.
"Derivative Work" means a work based upon the Work or upon the Work and other pre-existing works, such as a translation, musical arrangement, dramatization, fictionalization, motion picture version, sound recording, art reproduction, abridgment, condensation, or any other form in which the Work may be recast, transformed, or adapted, except that a work that constitutes a Collective Work will not be considered a Derivative Work for the purpose of this License. For the avoidance of doubt, where the Work is a musical composition or sound recording, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered a Derivative Work for the purpose of this License.
"Licensor" means the individual or entity that offers the Work under the terms of this License.
"Original Author" means the individual or entity who created the Work.
"Work" means the copyrightable work of authorship offered under the terms of this License.
"You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation.
"License Elements" means the following high-level license attributes as selected by Licensor and indicated in the title of this License: Attribution, Noncommercial, ShareAlike.
Fair Use Rights. Nothing in this license is intended to reduce, limit, or restrict any rights arising from fair use, first sale or other limitations on the exclusive rights of the copyright owner under copyright law or other applicable laws.
License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below:
to reproduce the Work, to incorporate the Work into one or more Collective Works, and to reproduce the Work as incorporated in the Collective Works;
to create and reproduce Derivative Works;
to distribute copies or phonorecords of, display publicly, perform publicly, and perform publicly by means of a digital audio transmission the Work including as incorporated in Collective Works;
to distribute copies or phonorecords of, display publicly, perform publicly, and perform publicly by means of a digital audio transmission Derivative Works;
The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. All rights not expressly granted by Licensor are hereby reserved, including but not limited to the rights set forth in Sections 4(e) and 4(f).
Restrictions.The license granted in Section 3 above is expressly made subject to and limited by the following restrictions:
You may distribute, publicly display, publicly perform, or publicly digitally perform the Work only under the terms of this License, and You must include a copy of, or the Uniform Resource Identifier for, this License with every copy or phonorecord of the Work You distribute, publicly display, publicly perform, or publicly digitally perform. You may not offer or impose any terms on the Work that alter or restrict the terms of this License or the recipients' exercise of the rights granted hereunder. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties. You may not distribute, publicly display, publicly perform, or publicly digitally perform the Work with any technological measures that control access or use of the Work in a manner inconsistent with the terms of this License Agreement. The above applies to the Work as incorporated in a Collective Work, but this does not require the Collective Work apart from the Work itself to be made subject to the terms of this License. If You create a Collective Work, upon notice from any Licensor You must, to the extent practicable, remove from the Collective Work any reference to such Licensor or the Original Author, as requested. If You create a Derivative Work, upon notice from any Licensor You must, to the extent practicable, remove from the Derivative Work any reference to such Licensor or the Original Author, as requested.
You may distribute, publicly display, publicly perform, or publicly digitally perform a Derivative Work only under the terms of this License, a later version of this License with the same License Elements as this License, or a Creative Commons iCommons license that contains the same License Elements as this License (e.g. Attribution-NonCommercial-ShareAlike 2.0 Japan). You must include a copy of, or the Uniform Resource Identifier for, this License or other license specified in the previous sentence with every copy or phonorecord of each Derivative Work You distribute, publicly display, publicly perform, or publicly digitally perform. You may not offer or impose any terms on the Derivative Works that alter or restrict the terms of this License or the recipients' exercise of the rights granted hereunder, and You must keep intact all notices that refer to this License and to the disclaimer of warranties. You may not distribute, publicly display, publicly perform, or publicly digitally perform the Derivative Work with any technological measures that control access or use of the Work in a manner inconsistent with the terms of this License Agreement. The above applies to the Derivative Work as incorporated in a Collective Work, but this does not require the Collective Work apart from the Derivative Work itself to be made subject to the terms of this License.
You may not exercise any of the rights granted to You in Section 3 above in any manner that is primarily intended for or directed toward commercial advantage or private monetary compensation. The exchange of the Work for other copyrighted works by means of digital file-sharing or otherwise shall not be considered to be intended for or directed toward commercial advantage or private monetary compensation, provided there is no payment of any monetary compensation in connection with the exchange of copyrighted works.
If you distribute, publicly display, publicly perform, or publicly digitally perform the Work or any Derivative Works or Collective Works, You must keep intact all copyright notices for the Work and give the Original Author credit reasonable to the medium or means You are utilizing by conveying the name (or pseudonym if applicable) of the Original Author if supplied; the title of the Work if supplied; to the extent reasonably practicable, the Uniform Resource Identifier, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and in the case of a Derivative Work, a credit identifying the use of the Work in the Derivative Work (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). Such credit may be implemented in any reasonable manner; provided, however, that in the case of a Derivative Work or Collective Work, at a minimum such credit will appear where any other comparable authorship credit appears and in a manner at least as prominent as such other comparable authorship credit.
For the avoidance of doubt, where the Work is a musical composition:
Performance Royalties Under Blanket Licenses. Licensor reserves the exclusive right to collect, whether individually or via a performance rights society (e.g. ASCAP, BMI, SESAC), royalties for the public performance or public digital performance (e.g. webcast) of the Work if that performance is primarily intended for or directed toward commercial advantage or private monetary compensation.
Mechanical Rights and Statutory Royalties. Licensor reserves the exclusive right to collect, whether individually or via a music rights agency or designated agent (e.g. Harry Fox Agency), royalties for any phonorecord You create from the Work ("cover version") and distribute, subject to the compulsory license created by 17 USC Section 115 of the US Copyright Act (or the equivalent in other jurisdictions), if Your distribution of such cover version is primarily intended for or directed toward commercial advantage or private monetary compensation. 6. Webcasting Rights and Statutory Royalties. For the avoidance of doubt, where the Work is a sound recording, Licensor reserves the exclusive right to collect, whether individually or via a performance-rights society (e.g. SoundExchange), royalties for the public digital performance (e.g. webcast) of the Work, subject to the compulsory license created by 17 USC Section 114 of the US Copyright Act (or the equivalent in other jurisdictions), if Your public digital performance is primarily intended for or directed toward commercial advantage or private monetary compensation.
Webcasting Rights and Statutory Royalties. For the avoidance of doubt, where the Work is a sound recording, Licensor reserves the exclusive right to collect, whether individually or via a performance-rights society (e.g. SoundExchange), royalties for the public digital performance (e.g. webcast) of the Work, subject to the compulsory license created by 17 USC Section 114 of the US Copyright Act (or the equivalent in other jurisdictions), if Your public digital performance is primarily intended for or directed toward commercial advantage or private monetary compensation.
Representations, Warranties and Disclaimer
UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
Termination
This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Derivative Works or Collective Works from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License.
Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above.
Miscellaneous
Each time You distribute or publicly digitally perform the Work or a Collective Work, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License.
Each time You distribute or publicly digitally perform a Derivative Work, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License.
If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent.
This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You.
Creative Commons is not a party to this License, and makes no warranty whatsoever in connection with the Work. Creative Commons will not be liable to You or any party on any legal theory for any damages whatsoever, including without limitation any general, special, incidental or consequential damages arising in connection to this license. Notwithstanding the foregoing two (2) sentences, if Creative Commons has expressly identified itself as the Licensor hereunder, it shall have all rights and obligations of Licensor.
Except for the limited purpose of indicating to the public that the Work is licensed under the CCPL, neither party will use the trademark "Creative Commons" or any related trademark or logo of Creative Commons without the prior written consent of Creative Commons. Any permitted use will be in compliance with Creative Commons' then-current trademark usage guidelines, as may be published on its website or otherwise made available upon request from time to time.
Creative Commons may be contacted at http://creativecommons.org/.
Copyright © 1999-2017 Gerard Beekmans
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
Acl:Acl-2.2.52
-
Attr:Attr-2.4.47
-
Autoconf:Autoconf-2.69
-
Automake:Automake-1.15.1
-
Bash:Bash-4.4
-
tools:Bash-4.4
-
Bc:Bc-1.07.1
-
Binutils:Binutils-2.29
-
tools, pass 1:Binutils-2.29 - Pass 1
-
tools, pass 2:Binutils-2.29 - Pass 2
-
Bison:Bison-3.0.4
-
tools:Bison-3.0.4
-
Bootscripts:LFS-Bootscripts-20170626
-
Bzip2:Bzip2-1.0.6
-
tools:Bzip2-1.0.6
-
Check:Check-0.11.0
-
Coreutils:Coreutils-8.27
-
tools:Coreutils-8.27
-
DejaGNU:DejaGNU-1.6
-
Diffutils:Diffutils-3.6
-
tools:Diffutils-3.6
-
E2fsprogs:E2fsprogs-1.43.5
-
Eudev:Eudev-3.2.2
-
configuring:Configuring Eudev
-
Expat:Expat-2.2.3
-
Expect:Expect-5.45
-
File:File-5.31
-
tools:File-5.31
-
Findutils:Findutils-4.6.0
-
tools:Findutils-4.6.0
-
Flex:Flex-2.6.4
-
Gawk:Gawk-4.1.4
-
tools:Gawk-4.1.4
-
GCC:GCC-7.2.0
-
tools, libstdc++:Libstdc++-7.2.0
-
tools, pass 1:GCC-7.2.0 - Pass 1
-
tools, pass 2:GCC-7.2.0 - Pass 2
-
GDBM:GDBM-1.13
-
Gettext:Gettext-0.19.8.1
-
tools:Gettext-0.19.8.1
-
Glibc:Glibc-2.26
-
tools:Glibc-2.26
-
GMP:GMP-6.1.2
-
Gperf:Gperf-3.1
-
Grep:Grep-3.1
-
tools:Grep-3.1
-
Groff:Groff-1.22.3
-
GRUB:GRUB-2.02
-
Gzip:Gzip-1.8
-
tools:Gzip-1.8
-
Iana-Etc:Iana-Etc-2.30
-
Inetutils:Inetutils-1.9.4
-
Intltool:Intltool-0.51.0
-
IPRoute2:IPRoute2-4.12.0
-
Kbd:Kbd-2.0.4
-
Kmod:Kmod-24
-
Less:Less-487
-
Libcap:Libcap-2.25
-
Libpipeline:Libpipeline-1.4.2
-
Libtool:Libtool-2.4.6
-
Linux:Linux-4.12.7
-
API headers:Linux-4.12.7 API Headers
-
tools, API headers:Linux-4.12.7 API Headers
-
M4:M4-1.4.18
-
tools:M4-1.4.18
-
Make:Make-4.2.1
-
tools:Make-4.2.1
-
Man-DB:Man-DB-2.7.6.1
-
Man-pages:Man-pages-4.12
-
MPC:MPC-1.0.3
-
MPFR:MPFR-3.1.5
-
Ncurses:Ncurses-6.0
-
tools:Ncurses-6.0
-
Patch:Patch-2.7.5
-
tools:Patch-2.7.5
-
Perl:Perl-5.26.0
-
tools:Perl-5.26.0
-
Pkgconfig:Pkg-config-0.29.2
-
Procps-ng:Procps-ng-3.3.12
-
Psmisc:Psmisc-23.1
-
rc.site:The rc.site File
-
Readline:Readline-7.0
-
Sed:Sed-4.4
-
tools:Sed-4.4
-
Shadow:Shadow-4.5
-
configuring:Configuring Shadow
-
Sysklogd:Sysklogd-1.5.1
-
configuring:Configuring Sysklogd
-
Sysvinit:Sysvinit-2.88dsf
-
configuring:Configuring Sysvinit
-
Tar:Tar-1.29
-
tools:Tar-1.29
-
Tcl-core:Tcl-core-8.6.7
-
Texinfo:Texinfo-6.4
-
tools:Texinfo-6.4
-
Udev:
-
Util-linux:Util-linux-2.30.1
-
tools:Util-linux-2.30.1
-
Vim:Vim-8.0.586
-
XML::Parser:XML::Parser-2.44
-
Xz:Xz-5.2.3
-
tools:Xz-5.2.3
-
Zlib:Zlib-1.2.11
-
accessdb:Man-DB-2.7.6.1 -- description
-
aclocal:Automake-1.15.1 -- description
-
aclocal-1.15:Automake-1.15.1 -- description
-
addftinfo:Groff-1.22.3 -- description
-
addpart:Util-linux-2.30.1 -- description
-
addr2line:Binutils-2.29 -- description
-
afmtodit:Groff-1.22.3 -- description
-
agetty:Util-linux-2.30.1 -- description
-
apropos:Man-DB-2.7.6.1 -- description
-
ar:Binutils-2.29 -- description
-
as:Binutils-2.29 -- description
-
attr:Attr-2.4.47 -- description
-
autoconf:Autoconf-2.69 -- description
-
autoheader:Autoconf-2.69 -- description
-
autom4te:Autoconf-2.69 -- description
-
automake:Automake-1.15.1 -- description
-
automake-1.15:Automake-1.15.1 -- description
-
autopoint:Gettext-0.19.8.1 -- description
-
autoreconf:Autoconf-2.69 -- description
-
autoscan:Autoconf-2.69 -- description
-
autoupdate:Autoconf-2.69 -- description
-
awk:Gawk-4.1.4 -- description
-
badblocks:E2fsprogs-1.43.5 -- description
-
base64:Coreutils-8.27 -- description
-
basename:Coreutils-8.27 -- description
-
bash:Bash-4.4 -- description
-
bashbug:Bash-4.4 -- description
-
bc:Bc-1.07.1 -- description
-
bison:Bison-3.0.4 -- description
-
blkdiscard:Util-linux-2.30.1 -- description
-
blkid:Util-linux-2.30.1 -- description
-
blockdev:Util-linux-2.30.1 -- description
-
bootlogd:Sysvinit-2.88dsf -- description
-
bridge:IPRoute2-4.12.0 -- description
-
bunzip2:Bzip2-1.0.6 -- description
-
bzcat:Bzip2-1.0.6 -- description
-
bzcmp:Bzip2-1.0.6 -- description
-
bzdiff:Bzip2-1.0.6 -- description
-
bzegrep:Bzip2-1.0.6 -- description
-
bzfgrep:Bzip2-1.0.6 -- description
-
bzgrep:Bzip2-1.0.6 -- description
-
bzip2:Bzip2-1.0.6 -- description
-
bzip2recover:Bzip2-1.0.6 -- description
-
bzless:Bzip2-1.0.6 -- description
-
bzmore:Bzip2-1.0.6 -- description
-
c++:GCC-7.2.0 -- description
-
c++filt:Binutils-2.29 -- description
-
c2ph:Perl-5.26.0 -- description
-
cal:Util-linux-2.30.1 -- description
-
capsh:Libcap-2.25 -- description
-
captoinfo:Ncurses-6.0 -- description
-
cat:Coreutils-8.27 -- description
-
catchsegv:Glibc-2.26 -- description
-
catman:Man-DB-2.7.6.1 -- description
-
cc:GCC-7.2.0 -- description
-
cfdisk:Util-linux-2.30.1 -- description
-
chacl:Acl-2.2.52 -- description
-
chage:Shadow-4.5 -- description
-
chattr:E2fsprogs-1.43.5 -- description
-
chcon:Coreutils-8.27 -- description
-
chcpu:Util-linux-2.30.1 -- description
-
checkmk:Check-0.11.0 -- description
-
chem:Groff-1.22.3 -- description
-
chfn:Shadow-4.5 -- description
-
chgpasswd:Shadow-4.5 -- description
-
chgrp:Coreutils-8.27 -- description
-
chmod:Coreutils-8.27 -- description
-
chown:Coreutils-8.27 -- description
-
chpasswd:Shadow-4.5 -- description
-
chroot:Coreutils-8.27 -- description
-
chrt:Util-linux-2.30.1 -- description
-
chsh:Shadow-4.5 -- description
-
chvt:Kbd-2.0.4 -- description
-
cksum:Coreutils-8.27 -- description
-
clear:Ncurses-6.0 -- description
-
cmp:Diffutils-3.6 -- description
-
code:Findutils-4.6.0 -- description
-
col:Util-linux-2.30.1 -- description
-
colcrt:Util-linux-2.30.1 -- description
-
colrm:Util-linux-2.30.1 -- description
-
column:Util-linux-2.30.1 -- description
-
comm:Coreutils-8.27 -- description
-
compile_et:E2fsprogs-1.43.5 -- description
-
corelist:Perl-5.26.0 -- description
-
cp:Coreutils-8.27 -- description
-
cpan:Perl-5.26.0 -- description
-
cpp:GCC-7.2.0 -- description
-
csplit:Coreutils-8.27 -- description
-
ctrlaltdel:Util-linux-2.30.1 -- description
-
ctstat:IPRoute2-4.12.0 -- description
-
cut:Coreutils-8.27 -- description
-
date:Coreutils-8.27 -- description
-
dc:Bc-1.07.1 -- description
-
dd:Coreutils-8.27 -- description
-
deallocvt:Kbd-2.0.4 -- description
-
debugfs:E2fsprogs-1.43.5 -- description
-
delpart:Util-linux-2.30.1 -- description
-
depmod:Kmod-24 -- description
-
df:Coreutils-8.27 -- description
-
diff:Diffutils-3.6 -- description
-
diff3:Diffutils-3.6 -- description
-
dir:Coreutils-8.27 -- description
-
dircolors:Coreutils-8.27 -- description
-
dirname:Coreutils-8.27 -- description
-
dmesg:Util-linux-2.30.1 -- description
-
dnsdomainname:Inetutils-1.9.4 -- description
-
du:Coreutils-8.27 -- description
-
dumpe2fs:E2fsprogs-1.43.5 -- description
-
dumpkeys:Kbd-2.0.4 -- description
-
e2freefrag:E2fsprogs-1.43.5 -- description
-
e2fsck:E2fsprogs-1.43.5 -- description
-
e2image:E2fsprogs-1.43.5 -- description
-
e2label:E2fsprogs-1.43.5 -- description
-
e2undo:E2fsprogs-1.43.5 -- description
-
e4defrag:E2fsprogs-1.43.5 -- description
-
echo:Coreutils-8.27 -- description
-
egrep:Grep-3.1 -- description
-
eject:Util-linux-2.30.1 -- description
-
elfedit:Binutils-2.29 -- description
-
enc2xs:Perl-5.26.0 -- description
-
encguess:Perl-5.26.0 -- description
-
env:Coreutils-8.27 -- description
-
envsubst:Gettext-0.19.8.1 -- description
-
eqn:Groff-1.22.3 -- description
-
eqn2graph:Groff-1.22.3 -- description
-
ex:Vim-8.0.586 -- description
-
expand:Coreutils-8.27 -- description
-
expect:Expect-5.45 -- description
-
expiry:Shadow-4.5 -- description
-
expr:Coreutils-8.27 -- description
-
factor:Coreutils-8.27 -- description
-
faillog:Shadow-4.5 -- description
-
fallocate:Util-linux-2.30.1 -- description
-
false:Coreutils-8.27 -- description
-
fdformat:Util-linux-2.30.1 -- description
-
fdisk:Util-linux-2.30.1 -- description
-
fgconsole:Kbd-2.0.4 -- description
-
fgrep:Grep-3.1 -- description
-
file:File-5.31 -- description
-
filefrag:E2fsprogs-1.43.5 -- description
-
find:Findutils-4.6.0 -- description
-
findfs:Util-linux-2.30.1 -- description
-
findmnt:Util-linux-2.30.1 -- description
-
flex:Flex-2.6.4 -- description
-
flex++:Flex-2.6.4 -- description
-
flock:Util-linux-2.30.1 -- description
-
fmt:Coreutils-8.27 -- description
-
fold:Coreutils-8.27 -- description
-
free:Procps-ng-3.3.12 -- description
-
fsck:Util-linux-2.30.1 -- description
-
fsck.cramfs:Util-linux-2.30.1 -- description
-
fsck.ext2:E2fsprogs-1.43.5 -- description
-
fsck.ext3:E2fsprogs-1.43.5 -- description
-
fsck.ext4:E2fsprogs-1.43.5 -- description
-
fsck.ext4dev:E2fsprogs-1.43.5 -- description
-
fsck.minix:Util-linux-2.30.1 -- description
-
fsfreeze:Util-linux-2.30.1 -- description
-
fstab-decode:Sysvinit-2.88dsf -- description
-
fstrim:Util-linux-2.30.1 -- description
-
ftp:Inetutils-1.9.4 -- description
-
fuser:Psmisc-23.1 -- description
-
g++:GCC-7.2.0 -- description
-
gawk:Gawk-4.1.4 -- description
-
gawk-4.1.4:Gawk-4.1.4 -- description
-
gcc:GCC-7.2.0 -- description
-
gc-ar:GCC-7.2.0 -- description
-
gc-nm:GCC-7.2.0 -- description
-
gc-ranlib:GCC-7.2.0 -- description
-
gcov:GCC-7.2.0 -- description
-
gdbmtool:GDBM-1.13 -- description
-
gdbm_dump:GDBM-1.13 -- description
-
gdbm_load:GDBM-1.13 -- description
-
gdiffmk:Groff-1.22.3 -- description
-
gencat:Glibc-2.26 -- description
-
genl:IPRoute2-4.12.0 -- description
-
getcap:Libcap-2.25 -- description
-
getconf:Glibc-2.26 -- description
-
getent:Glibc-2.26 -- description
-
getfacl:Acl-2.2.52 -- description
-
getfattr:Attr-2.4.47 -- description
-
getkeycodes:Kbd-2.0.4 -- description
-
getopt:Util-linux-2.30.1 -- description
-
getpcaps:Libcap-2.25 -- description
-
gettext:Gettext-0.19.8.1 -- description
-
gettext.sh:Gettext-0.19.8.1 -- description
-
gettextize:Gettext-0.19.8.1 -- description
-
glilypond:Groff-1.22.3 -- description
-
gpasswd:Shadow-4.5 -- description
-
gperf:Gperf-3.1 -- description
-
gperl:Groff-1.22.3 -- description
-
gpinyin:Groff-1.22.3 -- description
-
gprof:Binutils-2.29 -- description
-
grap2graph:Groff-1.22.3 -- description
-
grep:Grep-3.1 -- description
-
grn:Groff-1.22.3 -- description
-
grodvi:Groff-1.22.3 -- description
-
groff:Groff-1.22.3 -- description
-
groffer:Groff-1.22.3 -- description
-
grog:Groff-1.22.3 -- description
-
grolbp:Groff-1.22.3 -- description
-
grolj4:Groff-1.22.3 -- description
-
gropdf:Groff-1.22.3 -- description
-
grops:Groff-1.22.3 -- description
-
grotty:Groff-1.22.3 -- description
-
groupadd:Shadow-4.5 -- description
-
groupdel:Shadow-4.5 -- description
-
groupmems:Shadow-4.5 -- description
-
groupmod:Shadow-4.5 -- description
-
groups:Coreutils-8.27 -- description
-
grpck:Shadow-4.5 -- description
-
grpconv:Shadow-4.5 -- description
-
grpunconv:Shadow-4.5 -- description
-
grub-bios-setup:GRUB-2.02 -- description
-
grub-editenv:GRUB-2.02 -- description
-
grub-file:GRUB-2.02 -- description
-
grub-fstest:GRUB-2.02 -- description
-
grub-glue-efi:GRUB-2.02 -- description
-
grub-install:GRUB-2.02 -- description
-
grub-kbdcomp:GRUB-2.02 -- description
-
grub-macbless:GRUB-2.02 -- description
-
grub-menulst2cfg:GRUB-2.02 -- description
-
grub-mkconfig:GRUB-2.02 -- description
-
grub-mkimage:GRUB-2.02 -- description
-
grub-mklayout:GRUB-2.02 -- description
-
grub-mknetdir:GRUB-2.02 -- description
-
grub-mkpasswd-pbkdf2:GRUB-2.02 -- description
-
grub-mkrelpath:GRUB-2.02 -- description
-
grub-mkrescue:GRUB-2.02 -- description
-
grub-mkstandalone:GRUB-2.02 -- description
-
grub-ofpathname:GRUB-2.02 -- description
-
grub-probe:GRUB-2.02 -- description
-
grub-reboot:GRUB-2.02 -- description
-
grub-render-label:GRUB-2.02 -- description
-
grub-script-check:GRUB-2.02 -- description
-
grub-set-default:GRUB-2.02 -- description
-
grub-setup:GRUB-2.02 -- description
-
grub-syslinux2cfg:GRUB-2.02 -- description
-
gunzip:Gzip-1.8 -- description
-
gzexe:Gzip-1.8 -- description
-
gzip:Gzip-1.8 -- description
-
h2ph:Perl-5.26.0 -- description
-
h2xs:Perl-5.26.0 -- description
-
halt:Sysvinit-2.88dsf -- description
-
head:Coreutils-8.27 -- description
-
hexdump:Util-linux-2.30.1 -- description
-
hostid:Coreutils-8.27 -- description
-
hostname:Inetutils-1.9.4 -- description
-
hpftodit:Groff-1.22.3 -- description
-
hwclock:Util-linux-2.30.1 -- description
-
i386:Util-linux-2.30.1 -- description
-
iconv:Glibc-2.26 -- description
-
iconvconfig:Glibc-2.26 -- description
-
id:Coreutils-8.27 -- description
-
ifcfg:IPRoute2-4.12.0 -- description
-
ifconfig:Inetutils-1.9.4 -- description
-
ifnames:Autoconf-2.69 -- description
-
ifstat:IPRoute2-4.12.0 -- description
-
igawk:Gawk-4.1.4 -- description
-
indxbib:Groff-1.22.3 -- description
-
info:Texinfo-6.4 -- description
-
infocmp:Ncurses-6.0 -- description
-
infotocap:Ncurses-6.0 -- description
-
init:Sysvinit-2.88dsf -- description
-
insmod:Kmod-24 -- description
-
install:Coreutils-8.27 -- description
-
install-info:Texinfo-6.4 -- description
-
instmodsh:Perl-5.26.0 -- description
-
intltool-extract:Intltool-0.51.0 -- description
-
intltool-merge:Intltool-0.51.0 -- description
-
intltool-prepare:Intltool-0.51.0 -- description
-
intltool-update:Intltool-0.51.0 -- description
-
intltoolize:Intltool-0.51.0 -- description
-
ionice:Util-linux-2.30.1 -- description
-
ip:IPRoute2-4.12.0 -- description
-
ipcmk:Util-linux-2.30.1 -- description
-
ipcrm:Util-linux-2.30.1 -- description
-
ipcs:Util-linux-2.30.1 -- description
-
isosize:Util-linux-2.30.1 -- description
-
join:Coreutils-8.27 -- description
-
json_pp:Perl-5.26.0 -- description
-
kbdinfo:Kbd-2.0.4 -- description
-
kbdrate:Kbd-2.0.4 -- description
-
kbd_mode:Kbd-2.0.4 -- description
-
kill:Util-linux-2.30.1 -- description
-
killall:Psmisc-23.1 -- description
-
killall5:Sysvinit-2.88dsf -- description
-
klogd:Sysklogd-1.5.1 -- description
-
kmod:Kmod-24 -- description
-
last:Util-linux-2.30.1 -- description
-
lastb:Util-linux-2.30.1 -- description
-
lastlog:Shadow-4.5 -- description
-
ld:Binutils-2.29 -- description
-
ld.bfd:Binutils-2.29 -- description
-
ld.gold:Binutils-2.29 -- description
-
ldattach:Util-linux-2.30.1 -- description
-
ldconfig:Glibc-2.26 -- description
-
ldd:Glibc-2.26 -- description
-
lddlibc4:Glibc-2.26 -- description
-
less:Less-487 -- description
-
lessecho:Less-487 -- description
-
lesskey:Less-487 -- description
-
lex:Flex-2.6.4 -- description
-
lexgrog:Man-DB-2.7.6.1 -- description
-
lfskernel-4.12.7:Linux-4.12.7 -- description
-
libasan:GCC-7.2.0 -- description
-
libnetcfg:Perl-5.26.0 -- description
-
libtool:Libtool-2.4.6 -- description
-
libtoolize:Libtool-2.4.6 -- description
-
link:Coreutils-8.27 -- description
-
linux32:Util-linux-2.30.1 -- description
-
linux64:Util-linux-2.30.1 -- description
-
lkbib:Groff-1.22.3 -- description
-
ln:Coreutils-8.27 -- description
-
lnstat:IPRoute2-4.12.0 -- description
-
loadkeys:Kbd-2.0.4 -- description
-
loadunimap:Kbd-2.0.4 -- description
-
locale:Glibc-2.26 -- description
-
localedef:Glibc-2.26 -- description
-
locate:Findutils-4.6.0 -- description
-
logger:Util-linux-2.30.1 -- description
-
login:Shadow-4.5 -- description
-
logname:Coreutils-8.27 -- description
-
logoutd:Shadow-4.5 -- description
-
logsave:E2fsprogs-1.43.5 -- description
-
look:Util-linux-2.30.1 -- description
-
lookbib:Groff-1.22.3 -- description
-
losetup:Util-linux-2.30.1 -- description
-
ls:Coreutils-8.27 -- description
-
lsattr:E2fsprogs-1.43.5 -- description
-
lsblk:Util-linux-2.30.1 -- description
-
lscpu:Util-linux-2.30.1 -- description
-
lsipc:Util-linux-2.30.1 -- description
-
lslocks:Util-linux-2.30.1 -- description
-
lslogins:Util-linux-2.30.1 -- description
-
lsmod:Kmod-24 -- description
-
lzcat:Xz-5.2.3 -- description
-
lzcmp:Xz-5.2.3 -- description
-
lzdiff:Xz-5.2.3 -- description
-
lzegrep:Xz-5.2.3 -- description
-
lzfgrep:Xz-5.2.3 -- description
-
lzgrep:Xz-5.2.3 -- description
-
lzless:Xz-5.2.3 -- description
-
lzma:Xz-5.2.3 -- description
-
lzmadec:Xz-5.2.3 -- description
-
lzmainfo:Xz-5.2.3 -- description
-
lzmore:Xz-5.2.3 -- description
-
m4:M4-1.4.18 -- description
-
make:Make-4.2.1 -- description
-
makedb:Glibc-2.26 -- description
-
makeinfo:Texinfo-6.4 -- description
-
man:Man-DB-2.7.6.1 -- description
-
mandb:Man-DB-2.7.6.1 -- description
-
manpath:Man-DB-2.7.6.1 -- description
-
mapscrn:Kbd-2.0.4 -- description
-
mcookie:Util-linux-2.30.1 -- description
-
md5sum:Coreutils-8.27 -- description
-
mesg:Util-linux-2.30.1 -- description
-
mkdir:Coreutils-8.27 -- description
-
mke2fs:E2fsprogs-1.43.5 -- description
-
mkfifo:Coreutils-8.27 -- description
-
mkfs:Util-linux-2.30.1 -- description
-
mkfs.bfs:Util-linux-2.30.1 -- description
-
mkfs.cramfs:Util-linux-2.30.1 -- description
-
mkfs.ext2:E2fsprogs-1.43.5 -- description
-
mkfs.ext3:E2fsprogs-1.43.5 -- description
-
mkfs.ext4:E2fsprogs-1.43.5 -- description
-
mkfs.ext4dev:E2fsprogs-1.43.5 -- description
-
mkfs.minix:Util-linux-2.30.1 -- description
-
mklost+found:E2fsprogs-1.43.5 -- description
-
mknod:Coreutils-8.27 -- description
-
mkswap:Util-linux-2.30.1 -- description
-
mktemp:Coreutils-8.27 -- description
-
mk_cmds:E2fsprogs-1.43.5 -- description
-
mmroff:Groff-1.22.3 -- description
-
modinfo:Kmod-24 -- description
-
modprobe:Kmod-24 -- description
-
more:Util-linux-2.30.1 -- description
-
mount:Util-linux-2.30.1 -- description
-
mountpoint:Util-linux-2.30.1 -- description
-
msgattrib:Gettext-0.19.8.1 -- description
-
msgcat:Gettext-0.19.8.1 -- description
-
msgcmp:Gettext-0.19.8.1 -- description
-
msgcomm:Gettext-0.19.8.1 -- description
-
msgconv:Gettext-0.19.8.1 -- description
-
msgen:Gettext-0.19.8.1 -- description
-
msgexec:Gettext-0.19.8.1 -- description
-
msgfilter:Gettext-0.19.8.1 -- description
-
msgfmt:Gettext-0.19.8.1 -- description
-
msggrep:Gettext-0.19.8.1 -- description
-
msginit:Gettext-0.19.8.1 -- description
-
msgmerge:Gettext-0.19.8.1 -- description
-
msgunfmt:Gettext-0.19.8.1 -- description
-
msguniq:Gettext-0.19.8.1 -- description
-
mtrace:Glibc-2.26 -- description
-
mv:Coreutils-8.27 -- description
-
namei:Util-linux-2.30.1 -- description
-
ncursesw6-config:Ncurses-6.0 -- description
-
neqn:Groff-1.22.3 -- description
-
newgidmap:Shadow-4.5 -- description
-
newgrp:Shadow-4.5 -- description
-
newuidmap:Shadow-4.5 -- description
-
newusers:Shadow-4.5 -- description
-
ngettext:Gettext-0.19.8.1 -- description
-
nice:Coreutils-8.27 -- description
-
nl:Coreutils-8.27 -- description
-
nm:Binutils-2.29 -- description
-
nohup:Coreutils-8.27 -- description
-
nologin:Shadow-4.5 -- description
-
nproc:Coreutils-8.27 -- description
-
nroff:Groff-1.22.3 -- description
-
nscd:Glibc-2.26 -- description
-
nsenter:Util-linux-2.30.1 -- description
-
nstat:IPRoute2-4.12.0 -- description
-
numfmt:Coreutils-8.27 -- description
-
objcopy:Binutils-2.29 -- description
-
objdump:Binutils-2.29 -- description
-
od:Coreutils-8.27 -- description
-
oldfind:Findutils-4.6.0 -- description
-
openvt:Kbd-2.0.4 -- description
-
partx:Util-linux-2.30.1 -- description
-
passwd:Shadow-4.5 -- description
-
paste:Coreutils-8.27 -- description
-
patch:Patch-2.7.5 -- description
-
pathchk:Coreutils-8.27 -- description
-
pdfmom:Groff-1.22.3 -- description
-
pdfroff:Groff-1.22.3 -- description
-
pdftexi2dvi:Texinfo-6.4 -- description
-
peekfd:Psmisc-23.1 -- description
-
perl:Perl-5.26.0 -- description
-
perl5.26.0:Perl-5.26.0 -- description
-
perlbug:Perl-5.26.0 -- description
-
perldoc:Perl-5.26.0 -- description
-
perlivp:Perl-5.26.0 -- description
-
perlthanks:Perl-5.26.0 -- description
-
pfbtops:Groff-1.22.3 -- description
-
pg:Util-linux-2.30.1 -- description
-
pgrep:Procps-ng-3.3.12 -- description
-
pic:Groff-1.22.3 -- description
-
pic2graph:Groff-1.22.3 -- description
-
piconv:Perl-5.26.0 -- description
-
pidof:Procps-ng-3.3.12 -- description
-
ping:Inetutils-1.9.4 -- description
-
ping6:Inetutils-1.9.4 -- description
-
pinky:Coreutils-8.27 -- description
-
pivot_root:Util-linux-2.30.1 -- description
-
pkg-config:Pkg-config-0.29.2 -- description
-
pkill:Procps-ng-3.3.12 -- description
-
pl2pm:Perl-5.26.0 -- description
-
pldd:Glibc-2.26 -- description
-
pmap:Procps-ng-3.3.12 -- description
-
pod2html:Perl-5.26.0 -- description
-
pod2man:Perl-5.26.0 -- description
-
pod2texi:Texinfo-6.4 -- description
-
pod2text:Perl-5.26.0 -- description
-
pod2usage:Perl-5.26.0 -- description
-
podchecker:Perl-5.26.0 -- description
-
podselect:Perl-5.26.0 -- description
-
post-grohtml:Groff-1.22.3 -- description
-
poweroff:Sysvinit-2.88dsf -- description
-
pr:Coreutils-8.27 -- description
-
pre-grohtml:Groff-1.22.3 -- description
-
preconv:Groff-1.22.3 -- description
-
printenv:Coreutils-8.27 -- description
-
printf:Coreutils-8.27 -- description
-
prlimit:Util-linux-2.30.1 -- description
-
prove:Perl-5.26.0 -- description
-
prtstat:Psmisc-23.1 -- description
-
ps:Procps-ng-3.3.12 -- description
-
psfaddtable:Kbd-2.0.4 -- description
-
psfgettable:Kbd-2.0.4 -- description
-
psfstriptable:Kbd-2.0.4 -- description
-
psfxtable:Kbd-2.0.4 -- description
-
pstree:Psmisc-23.1 -- description
-
pstree.x11:Psmisc-23.1 -- description
-
pstruct:Perl-5.26.0 -- description
-
ptar:Perl-5.26.0 -- description
-
ptardiff:Perl-5.26.0 -- description
-
ptargrep:Perl-5.26.0 -- description
-
ptx:Coreutils-8.27 -- description
-
pwck:Shadow-4.5 -- description
-
pwconv:Shadow-4.5 -- description
-
pwd:Coreutils-8.27 -- description
-
pwdx:Procps-ng-3.3.12 -- description
-
pwunconv:Shadow-4.5 -- description
-
ranlib:Binutils-2.29 -- description
-
raw:Util-linux-2.30.1 -- description
-
readelf:Binutils-2.29 -- description
-
readlink:Coreutils-8.27 -- description
-
readprofile:Util-linux-2.30.1 -- description
-
realpath:Coreutils-8.27 -- description
-
reboot:Sysvinit-2.88dsf -- description
-
recode-sr-latin:Gettext-0.19.8.1 -- description
-
refer:Groff-1.22.3 -- description
-
rename:Util-linux-2.30.1 -- description
-
renice:Util-linux-2.30.1 -- description
-
reset:Ncurses-6.0 -- description
-
resize2fs:E2fsprogs-1.43.5 -- description
-
resizepart:Util-linux-2.30.1 -- description
-
rev:Util-linux-2.30.1 -- description
-
rm:Coreutils-8.27 -- description
-
rmdir:Coreutils-8.27 -- description
-
rmmod:Kmod-24 -- description
-
roff2dvi:Groff-1.22.3 -- description
-
roff2html:Groff-1.22.3 -- description
-
roff2pdf:Groff-1.22.3 -- description
-
roff2ps:Groff-1.22.3 -- description
-
roff2text:Groff-1.22.3 -- description
-
roff2x:Groff-1.22.3 -- description
-
routef:IPRoute2-4.12.0 -- description
-
routel:IPRoute2-4.12.0 -- description
-
rtacct:IPRoute2-4.12.0 -- description
-
rtcwake:Util-linux-2.30.1 -- description
-
rtmon:IPRoute2-4.12.0 -- description
-
rtpr:IPRoute2-4.12.0 -- description
-
rtstat:IPRoute2-4.12.0 -- description
-
runcon:Coreutils-8.27 -- description
-
runlevel:Sysvinit-2.88dsf -- description
-
runtest:DejaGNU-1.6 -- description
-
rview:Vim-8.0.586 -- description
-
rvim:Vim-8.0.586 -- description
-
script:Util-linux-2.30.1 -- description
-
scriptreplay:Util-linux-2.30.1 -- description
-
sdiff:Diffutils-3.6 -- description
-
sed:Sed-4.4 -- description
-
seq:Coreutils-8.27 -- description
-
setarch:Util-linux-2.30.1 -- description
-
setattr:Attr-2.4.47 -- description
-
setcap:Libcap-2.25 -- description
-
setfacl:Acl-2.2.52 -- description
-
setfont:Kbd-2.0.4 -- description
-
setkeycodes:Kbd-2.0.4 -- description
-
setleds:Kbd-2.0.4 -- description
-
setmetamode:Kbd-2.0.4 -- description
-
setsid:Util-linux-2.30.1 -- description
-
setterm:Util-linux-2.30.1 -- description
-
setvtrgb:Kbd-2.0.4 -- description
-
sfdisk:Util-linux-2.30.1 -- description
-
sg:Shadow-4.5 -- description
-
sh:Bash-4.4 -- description
-
sha1sum:Coreutils-8.27 -- description
-
sha224sum:Coreutils-8.27 -- description
-
sha256sum:Coreutils-8.27 -- description
-
sha384sum:Coreutils-8.27 -- description
-
sha512sum:Coreutils-8.27 -- description
-
shasum:Perl-5.26.0 -- description
-
showconsolefont:Kbd-2.0.4 -- description
-
showkey:Kbd-2.0.4 -- description
-
shred:Coreutils-8.27 -- description
-
shuf:Coreutils-8.27 -- description
-
shutdown:Sysvinit-2.88dsf -- description
-
size:Binutils-2.29 -- description
-
slabtop:Procps-ng-3.3.12 -- description
-
sleep:Coreutils-8.27 -- description
-
sln:Glibc-2.26 -- description
-
soelim:Groff-1.22.3 -- description
-
sort:Coreutils-8.27 -- description
-
sotruss:Glibc-2.26 -- description
-
splain:Perl-5.26.0 -- description
-
split:Coreutils-8.27 -- description
-
sprof:Glibc-2.26 -- description
-
ss:IPRoute2-4.12.0 -- description
-
stat:Coreutils-8.27 -- description
-
stdbuf:Coreutils-8.27 -- description
-
strings:Binutils-2.29 -- description
-
strip:Binutils-2.29 -- description
-
stty:Coreutils-8.27 -- description
-
su:Shadow-4.5 -- description
-
sulogin:Util-linux-2.30.1 -- description
-
sum:Coreutils-8.27 -- description
-
swaplabel:Util-linux-2.30.1 -- description
-
swapoff:Util-linux-2.30.1 -- description
-
swapon:Util-linux-2.30.1 -- description
-
switch_root:Util-linux-2.30.1 -- description
-
sync:Coreutils-8.27 -- description
-
sysctl:Procps-ng-3.3.12 -- description
-
syslogd:Sysklogd-1.5.1 -- description
-
tabs:Ncurses-6.0 -- description
-
tac:Coreutils-8.27 -- description
-
tail:Coreutils-8.27 -- description
-
tailf:Util-linux-2.30.1 -- description
-
talk:Inetutils-1.9.4 -- description
-
tar:Tar-1.29 -- description
-
taskset:Util-linux-2.30.1 -- description
-
tbl:Groff-1.22.3 -- description
-
tc:IPRoute2-4.12.0 -- description
-
tclsh:Tcl-core-8.6.7 -- description
-
tclsh8.6:Tcl-core-8.6.7 -- description
-
tee:Coreutils-8.27 -- description
-
telinit:Sysvinit-2.88dsf -- description
-
telnet:Inetutils-1.9.4 -- description
-
test:Coreutils-8.27 -- description
-
texi2dvi:Texinfo-6.4 -- description
-
texi2pdf:Texinfo-6.4 -- description
-
texi2any:Texinfo-6.4 -- description
-
texindex:Texinfo-6.4 -- description
-
tfmtodit:Groff-1.22.3 -- description
-
tftp:Inetutils-1.9.4 -- description
-
tic:Ncurses-6.0 -- description
-
timeout:Coreutils-8.27 -- description
-
tload:Procps-ng-3.3.12 -- description
-
toe:Ncurses-6.0 -- description
-
top:Procps-ng-3.3.12 -- description
-
touch:Coreutils-8.27 -- description
-
tput:Ncurses-6.0 -- description
-
tr:Coreutils-8.27 -- description
-
traceroute:Inetutils-1.9.4 -- description
-
troff:Groff-1.22.3 -- description
-
true:Coreutils-8.27 -- description
-
truncate:Coreutils-8.27 -- description
-
tset:Ncurses-6.0 -- description
-
tsort:Coreutils-8.27 -- description
-
tty:Coreutils-8.27 -- description
-
tune2fs:E2fsprogs-1.43.5 -- description
-
tzselect:Glibc-2.26 -- description
-
udevadm:Eudev-3.2.2 -- description
-
udevd:Eudev-3.2.2 -- description
-
ul:Util-linux-2.30.1 -- description
-
umount:Util-linux-2.30.1 -- description
-
uname:Coreutils-8.27 -- description
-
uname26:Util-linux-2.30.1 -- description
-
uncompress:Gzip-1.8 -- description
-
unexpand:Coreutils-8.27 -- description
-
unicode_start:Kbd-2.0.4 -- description
-
unicode_stop:Kbd-2.0.4 -- description
-
uniq:Coreutils-8.27 -- description
-
unlink:Coreutils-8.27 -- description
-
unlzma:Xz-5.2.3 -- description
-
unshare:Util-linux-2.30.1 -- description
-
unxz:Xz-5.2.3 -- description
-
updatedb:Findutils-4.6.0 -- description
-
uptime:Procps-ng-3.3.12 -- description
-
useradd:Shadow-4.5 -- description
-
userdel:Shadow-4.5 -- description
-
usermod:Shadow-4.5 -- description
-
users:Coreutils-8.27 -- description
-
utmpdump:Util-linux-2.30.1 -- description
-
uuidd:Util-linux-2.30.1 -- description
-
uuidgen:Util-linux-2.30.1 -- description
-
vdir:Coreutils-8.27 -- description
-
vi:Vim-8.0.586 -- description
-
view:Vim-8.0.586 -- description
-
vigr:Shadow-4.5 -- description
-
vim:Vim-8.0.586 -- description
-
vimdiff:Vim-8.0.586 -- description
-
vimtutor:Vim-8.0.586 -- description
-
vipw:Shadow-4.5 -- description
-
vmstat:Procps-ng-3.3.12 -- description
-
wall:Util-linux-2.30.1 -- description
-
watch:Procps-ng-3.3.12 -- description
-
wc:Coreutils-8.27 -- description
-
wdctl:Util-linux-2.30.1 -- description
-
whatis:Man-DB-2.7.6.1 -- description
-
whereis:Util-linux-2.30.1 -- description
-
who:Coreutils-8.27 -- description
-
whoami:Coreutils-8.27 -- description
-
wipefs:Util-linux-2.30.1 -- description
-
x86_64:Util-linux-2.30.1 -- description
-
xargs:Findutils-4.6.0 -- description
-
xgettext:Gettext-0.19.8.1 -- description
-
xmlwf:Expat-2.2.3 -- description
-
xsubpp:Perl-5.26.0 -- description
-
xtrace:Glibc-2.26 -- description
-
xxd:Vim-8.0.586 -- description
-
xz:Xz-5.2.3 -- description
-
xzcat:Xz-5.2.3 -- description
-
xzcmp:Xz-5.2.3 -- description
-
xzdec:Xz-5.2.3 -- description
-
xzdiff:Xz-5.2.3 -- description
-
xzegrep:Xz-5.2.3 -- description
-
xzfgrep:Xz-5.2.3 -- description
-
xzgrep:Xz-5.2.3 -- description
-
xzless:Xz-5.2.3 -- description
-
xzmore:Xz-5.2.3 -- description
-
yacc:Bison-3.0.4 -- description
-
yes:Coreutils-8.27 -- description
-
zcat:Gzip-1.8 -- description
-
zcmp:Gzip-1.8 -- description
-
zdiff:Gzip-1.8 -- description
-
zdump:Glibc-2.26 -- description
-
zegrep:Gzip-1.8 -- description
-
zfgrep:Gzip-1.8 -- description
-
zforce:Gzip-1.8 -- description
-
zgrep:Gzip-1.8 -- description
-
zic:Glibc-2.26 -- description
-
zipdetails:Perl-5.26.0 -- description
-
zless:Gzip-1.8 -- description
-
zmore:Gzip-1.8 -- description
-
znew:Gzip-1.8 -- description
-
zramctl:Util-linux-2.30.1 -- description
-
Expat:XML::Parser-2.44 -- description
-
ld-2.26.so:Glibc-2.26 -- description
-
libacl:Acl-2.2.52 -- description
-
libanl:Glibc-2.26 -- description
-
libasprintf:Gettext-0.19.8.1 -- description
-
libattr:Attr-2.4.47 -- description
-
libbfd:Binutils-2.29 -- description
-
libblkid:Util-linux-2.30.1 -- description
-
libBrokenLocale:Glibc-2.26 -- description
-
libbz2:Bzip2-1.0.6 -- description
-
libc:Glibc-2.26 -- description
-
libcap:Libcap-2.25 -- description
-
libcheck:Check-0.11.0 -- description
-
libcidn:Glibc-2.26 -- description
-
libcom_err:E2fsprogs-1.43.5 -- description
-
libcrypt:Glibc-2.26 -- description
-
libcursesw:Ncurses-6.0 -- description
-
libdl:Glibc-2.26 -- description
-
libe2p:E2fsprogs-1.43.5 -- description
-
libexpat:Expat-2.2.3 -- description
-
libexpect-5.45:Expect-5.45 -- description
-
libext2fs:E2fsprogs-1.43.5 -- description
-
libfdisk:Util-linux-2.30.1 -- description
-
libfl:Flex-2.6.4 -- description
-
libformw:Ncurses-6.0 -- description
-
libg:Glibc-2.26 -- description
-
libgcc:GCC-7.2.0 -- description
-
libgcov:GCC-7.2.0 -- description
-
libgdbm:GDBM-1.13 -- description
-
libgdbm_compat:GDBM-1.13 -- description
-
libgettextlib:Gettext-0.19.8.1 -- description
-
libgettextpo:Gettext-0.19.8.1 -- description
-
libgettextsrc:Gettext-0.19.8.1 -- description
-
libgmp:GMP-6.1.2 -- description
-
libgmpxx:GMP-6.1.2 -- description
-
libgomp:GCC-7.2.0 -- description
-
libhistory:Readline-7.0 -- description
-
libiberty:GCC-7.2.0 -- description
-
libieee:Glibc-2.26 -- description
-
libkmod:Kmod-24
-
libltdl:Libtool-2.4.6 -- description
-
liblto_plugin:GCC-7.2.0 -- description
-
liblzma:Xz-5.2.3 -- description
-
libm:Glibc-2.26 -- description
-
libmagic:File-5.31 -- description
-
libman:Man-DB-2.7.6.1 -- description
-
libmandb:Man-DB-2.7.6.1 -- description
-
libmcheck:Glibc-2.26 -- description
-
libmemusage:Glibc-2.26 -- description
-
libmenuw:Ncurses-6.0 -- description
-
libmount:Util-linux-2.30.1 -- description
-
libmpc:MPC-1.0.3 -- description
-
libmpfr:MPFR-3.1.5 -- description
-
libncursesw:Ncurses-6.0 -- description
-
libnsl:Glibc-2.26 -- description
-
libnss:Glibc-2.26 -- description
-
libopcodes:Binutils-2.29 -- description
-
libpanelw:Ncurses-6.0 -- description
-
libpipeline:Libpipeline-1.4.2
-
libprocps:Procps-ng-3.3.12 -- description
-
libpthread:Glibc-2.26 -- description
-
libquadmath:GCC-7.2.0 -- description
-
libreadline:Readline-7.0 -- description
-
libresolv:Glibc-2.26 -- description
-
librpcsvc:Glibc-2.26 -- description
-
librt:Glibc-2.26 -- description
-
libSegFault:Glibc-2.26 -- description
-
libsmartcols:Util-linux-2.30.1 -- description
-
libss:E2fsprogs-1.43.5 -- description
-
libssp:GCC-7.2.0 -- description
-
libstdbuf:Coreutils-8.27 -- description
-
libstdc++:GCC-7.2.0 -- description
-
libsupc++:GCC-7.2.0 -- description
-
libtcl8.6.so:Tcl-core-8.6.7 -- description
-
libtclstub8.6.a:Tcl-core-8.6.7 -- description
-
libthread_db:Glibc-2.26 -- description
-
libtsan:GCC-7.2.0 -- description
-
libudev:Eudev-3.2.2 -- description
-
libutil:Glibc-2.26 -- description
-
libuuid:Util-linux-2.30.1 -- description
-
liby:Bison-3.0.4 -- description
-
libz:Zlib-1.2.11 -- description
-
preloadable_libintl:Gettext-0.19.8.1 -- description
-
checkfs:LFS-Bootscripts-20170626 -- description
-
cleanfs:LFS-Bootscripts-20170626 -- description
-
console:LFS-Bootscripts-20170626 -- description
-
configuring:Configuring the Linux Console
-
File creation at boot:
-
configuring:Creating Files at Boot
-
functions:LFS-Bootscripts-20170626 -- description
-
halt:LFS-Bootscripts-20170626 -- description
-
hostname:
-
configuring:Configuring the system hostname
-
ifdown:LFS-Bootscripts-20170626 -- description
-
ifup:LFS-Bootscripts-20170626 -- description
-
ipv4-static:LFS-Bootscripts-20170626 -- description
-
localnet:LFS-Bootscripts-20170626 -- description
-
/etc/hosts:Customizing the /etc/hosts File
-
modules:LFS-Bootscripts-20170626 -- description
-
mountfs:LFS-Bootscripts-20170626 -- description
-
mountvirtfs:LFS-Bootscripts-20170626 -- description
-
network:LFS-Bootscripts-20170626 -- description
-
/etc/hosts:Customizing the /etc/hosts File
-
configuring:General Network Configuration
-
reboot:LFS-Bootscripts-20170626 -- description
-
setclock:
-
configuring:Configuring the System Clock
-
sendsignals:LFS-Bootscripts-20170626 -- description
-
setclock:LFS-Bootscripts-20170626 -- description
-
swap:LFS-Bootscripts-20170626 -- description
-
sysctl:LFS-Bootscripts-20170626 -- description
-
sysklogd:LFS-Bootscripts-20170626 -- description
-
configuring:Configuring the sysklogd Script
-
template:LFS-Bootscripts-20170626 -- description
-
udev:LFS-Bootscripts-20170626 -- description
-
udev_retry:LFS-Bootscripts-20170626 -- description
-
/boot/config-4.12.7:Linux-4.12.7 -- description
-
/boot/System.map-4.12.7:Linux-4.12.7 -- description
-
/etc/fstab:Creating the /etc/fstab File
-
/etc/group:Creating Essential Files and Symlinks
-
/etc/hosts:Customizing the /etc/hosts File
-
/etc/inittab:Configuring Sysvinit
-
/etc/inputrc:Creating the /etc/inputrc File
-
/etc/ld.so.conf:Configuring the Dynamic Loader
-
/etc/lfs-release:The End
-
/etc/localtime:Configuring Glibc
-
/etc/lsb-release:The End
-
/etc/modprobe.d/usb.conf:Configuring Linux Module Load Order
-
/etc/nsswitch.conf:Configuring Glibc
-
/etc/passwd:Creating Essential Files and Symlinks
-
/etc/profile:The Bash Shell Startup Files
-
/etc/protocols:Iana-Etc-2.30
-
/etc/resolv.conf:Creating the /etc/resolv.conf File
-
/etc/services:Iana-Etc-2.30
-
/etc/syslog.conf:Configuring Sysklogd
-
/etc/udev:Eudev-3.2.2 -- description
-
/etc/udev/hwdb.bin:Configuring Eudev
-
/etc/vimrc:Configuring Vim
-
/usr/include/asm-generic/*.h:Linux-4.12.7 API Headers -- description
-
/usr/include/asm/*.h:Linux-4.12.7 API Headers -- description
-
/usr/include/drm/*.h:Linux-4.12.7 API Headers -- description
-
/usr/include/linux/*.h:Linux-4.12.7 API Headers -- description
-
/usr/include/mtd/*.h:Linux-4.12.7 API Headers -- description
-
/usr/include/rdma/*.h:Linux-4.12.7 API Headers -- description
-
/usr/include/scsi/*.h:Linux-4.12.7 API Headers -- description
-
/usr/include/sound/*.h:Linux-4.12.7 API Headers -- description
-
/usr/include/video/*.h:Linux-4.12.7 API Headers -- description
-
/usr/include/xen/*.h:Linux-4.12.7 API Headers -- description
-
/var/log/btmp:Creating Essential Files and Symlinks
-
/var/log/lastlog:Creating Essential Files and Symlinks
-
/var/log/wtmp:Creating Essential Files and Symlinks
-
/var/run/utmp:Creating Essential Files and Symlinks
-
/etc/shells:Creating the /etc/shells File
-
man pages:Man-pages-4.12 -- description