aboutsummaryrefslogtreecommitdiffstats
path: root/chapter9
diff options
context:
space:
mode:
Diffstat (limited to 'chapter9')
-rw-r--r--chapter9/bashprofile.sh20
-rw-r--r--chapter9/bootscriptconf.sh102
-rw-r--r--chapter9/inputrc.sh90
-rw-r--r--chapter9/lfs-bootscripts.sh8
-rw-r--r--chapter9/network.sh76
-rw-r--r--chapter9/shells.sh20
6 files changed, 158 insertions, 158 deletions
diff --git a/chapter9/bashprofile.sh b/chapter9/bashprofile.sh
index 7ae73c2..abbf67b 100644
--- a/chapter9/bashprofile.sh
+++ b/chapter9/bashprofile.sh
@@ -1,10 +1,10 @@
-#!/bin/bash
-
-cat > /etc/profile << "EOF"
-# Begin /etc/profile
-
-export LANG=en_US
-export LC_TIME=POSIX
-
-# End /etc/profile
-EOF
+#!/bin/bash
+
+cat > /etc/profile << "EOF"
+# Begin /etc/profile
+
+export LANG=en_US
+export LC_TIME=POSIX
+
+# End /etc/profile
+EOF
diff --git a/chapter9/bootscriptconf.sh b/chapter9/bootscriptconf.sh
index ae9633c..6d83edb 100644
--- a/chapter9/bootscriptconf.sh
+++ b/chapter9/bootscriptconf.sh
@@ -1,51 +1,51 @@
-#!/bin/bash
-
-cat > /etc/inittab << "EOF"
-# Begin /etc/inittab
-
-id:3:initdefault:
-
-si::sysinit:/etc/rc.d/init.d/rc S
-
-l0:0:wait:/etc/rc.d/init.d/rc 0
-l1:S1:wait:/etc/rc.d/init.d/rc 1
-l2:2:wait:/etc/rc.d/init.d/rc 2
-l3:3:wait:/etc/rc.d/init.d/rc 3
-l4:4:wait:/etc/rc.d/init.d/rc 4
-l5:5:wait:/etc/rc.d/init.d/rc 5
-l6:6:wait:/etc/rc.d/init.d/rc 6
-
-ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
-
-su:S016:once:/sbin/sulogin
-
-1:2345:respawn:/sbin/agetty --noclear tty1 9600
-2:2345:respawn:/sbin/agetty tty2 9600
-3:2345:respawn:/sbin/agetty tty3 9600
-4:2345:respawn:/sbin/agetty tty4 9600
-5:2345:respawn:/sbin/agetty tty5 9600
-6:2345:respawn:/sbin/agetty tty6 9600
-
-# End /etc/inittab
-EOF
-
-cat > /etc/sysconfig/clock << "EOF"
-# Begin /etc/sysconfig/clock
-
-UTC=1
-
-# Set this to any options you might need to give to hwclock,
-# such as machine hardware clock type for Alphas.
-CLOCKPARAMS=
-
-# End /etc/sysconfig/clock
-EOF
-
-#cat > /etc/sysconfig/console << "EOF"
-# Begin /etc/sysconfig/console
-
-#KEYMAP="pl2"
-#FONT="lat2a-16 -m 8859-2"
-
-# End /etc/sysconfig/console
-#EOF
+#!/bin/bash
+
+cat > /etc/inittab << "EOF"
+# Begin /etc/inittab
+
+id:3:initdefault:
+
+si::sysinit:/etc/rc.d/init.d/rc S
+
+l0:0:wait:/etc/rc.d/init.d/rc 0
+l1:S1:wait:/etc/rc.d/init.d/rc 1
+l2:2:wait:/etc/rc.d/init.d/rc 2
+l3:3:wait:/etc/rc.d/init.d/rc 3
+l4:4:wait:/etc/rc.d/init.d/rc 4
+l5:5:wait:/etc/rc.d/init.d/rc 5
+l6:6:wait:/etc/rc.d/init.d/rc 6
+
+ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
+
+su:S016:once:/sbin/sulogin
+
+1:2345:respawn:/sbin/agetty --noclear tty1 9600
+2:2345:respawn:/sbin/agetty tty2 9600
+3:2345:respawn:/sbin/agetty tty3 9600
+4:2345:respawn:/sbin/agetty tty4 9600
+5:2345:respawn:/sbin/agetty tty5 9600
+6:2345:respawn:/sbin/agetty tty6 9600
+
+# End /etc/inittab
+EOF
+
+cat > /etc/sysconfig/clock << "EOF"
+# Begin /etc/sysconfig/clock
+
+UTC=1
+
+# Set this to any options you might need to give to hwclock,
+# such as machine hardware clock type for Alphas.
+CLOCKPARAMS=
+
+# End /etc/sysconfig/clock
+EOF
+
+#cat > /etc/sysconfig/console << "EOF"
+# Begin /etc/sysconfig/console
+
+#KEYMAP="pl2"
+#FONT="lat2a-16 -m 8859-2"
+
+# End /etc/sysconfig/console
+#EOF
diff --git a/chapter9/inputrc.sh b/chapter9/inputrc.sh
index 5da8f3b..aeea7b4 100644
--- a/chapter9/inputrc.sh
+++ b/chapter9/inputrc.sh
@@ -1,45 +1,45 @@
-#!/bin/bash
-
-cat > /etc/inputrc << "EOF"
-# Begin /etc/inputrc
-# Modified by Chris Lynn <roryo@roryo.dynup.net>
-
-# Allow the command prompt to wrap to the next line
-set horizontal-scroll-mode Off
-
-# Enable 8bit input
-set meta-flag On
-set input-meta On
-
-# Turns off 8th bit stripping
-set convert-meta Off
-
-# Keep the 8th bit for display
-set output-meta On
-
-# none, visible or audible
-set bell-style none
-
-# All of the following map the escape sequence of the value
-# contained in the 1st argument to the readline specific functions
-"\eOd": backward-word
-"\eOc": forward-word
-
-# for linux console
-"\e[1~": beginning-of-line
-"\e[4~": end-of-line
-"\e[5~": beginning-of-history
-"\e[6~": end-of-history
-"\e[3~": delete-char
-"\e[2~": quoted-insert
-
-# for xterm
-"\eOH": beginning-of-line
-"\eOF": end-of-line
-
-# for Konsole
-"\e[H": beginning-of-line
-"\e[F": end-of-line
-
-# End /etc/inputrc
-EOF
+#!/bin/bash
+
+cat > /etc/inputrc << "EOF"
+# Begin /etc/inputrc
+# Modified by Chris Lynn <roryo@roryo.dynup.net>
+
+# Allow the command prompt to wrap to the next line
+set horizontal-scroll-mode Off
+
+# Enable 8bit input
+set meta-flag On
+set input-meta On
+
+# Turns off 8th bit stripping
+set convert-meta Off
+
+# Keep the 8th bit for display
+set output-meta On
+
+# none, visible or audible
+set bell-style none
+
+# All of the following map the escape sequence of the value
+# contained in the 1st argument to the readline specific functions
+"\eOd": backward-word
+"\eOc": forward-word
+
+# for linux console
+"\e[1~": beginning-of-line
+"\e[4~": end-of-line
+"\e[5~": beginning-of-history
+"\e[6~": end-of-history
+"\e[3~": delete-char
+"\e[2~": quoted-insert
+
+# for xterm
+"\eOH": beginning-of-line
+"\eOF": end-of-line
+
+# for Konsole
+"\e[H": beginning-of-line
+"\e[F": end-of-line
+
+# End /etc/inputrc
+EOF
diff --git a/chapter9/lfs-bootscripts.sh b/chapter9/lfs-bootscripts.sh
index c019094..d81d179 100644
--- a/chapter9/lfs-bootscripts.sh
+++ b/chapter9/lfs-bootscripts.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
-set -e
-
-make -j1 install
+#!/bin/bash
+set -e
+
+make -j1 install
diff --git a/chapter9/network.sh b/chapter9/network.sh
index 05ab2fd..ea8c48b 100644
--- a/chapter9/network.sh
+++ b/chapter9/network.sh
@@ -1,38 +1,38 @@
-#!/bin/bash
-
-pushd /etc/sysconfig/ >/dev/null || exit 1
-cat > ifconfig.eth0 << "EOF"
-ONBOOT=yes
-IFACE=eth0
-SERVICE=ipv4-static
-IP=192.168.1.196
-GATEWAY=192.168.1.1
-PREFIX=24
-BROADCAST=192.168.1.255
-EOF
-popd >/dev/null || exit 1
-
-cat > /etc/resolv.conf << "EOF"
-# Begin /etc/resolv.conf
-
-nameserver 192.168.1.10
-domain berzerkula.org
-search berzerkula.org
-
-# End /etc/resolv.conf
-EOF
-
-echo "lfs" > /etc/hostname
-
-cat > /etc/hosts << "EOF"
-# Begin /etc/hosts
-
-127.0.0.1 localhost.localdomain localhost
-127.0.1.1 lfs.berzerkula.org lfs
-192.168.1.196 lfs.berzerkula.org lfs
-::1 localhost ip6-localhost ip6-loopback
-ff02::1 ip6-allnodes
-ff02::2 ip6-allrouters
-
-# End /etc/hosts
-EOF
+#!/bin/bash
+
+pushd /etc/sysconfig/ >/dev/null || exit 1
+cat > ifconfig.eth0 << "EOF"
+ONBOOT=yes
+IFACE=eth0
+SERVICE=ipv4-static
+IP=192.168.1.196
+GATEWAY=192.168.1.1
+PREFIX=24
+BROADCAST=192.168.1.255
+EOF
+popd >/dev/null || exit 1
+
+cat > /etc/resolv.conf << "EOF"
+# Begin /etc/resolv.conf
+
+nameserver 192.168.1.10
+domain berzerkula.org
+search berzerkula.org
+
+# End /etc/resolv.conf
+EOF
+
+echo "lfs" > /etc/hostname
+
+cat > /etc/hosts << "EOF"
+# Begin /etc/hosts
+
+127.0.0.1 localhost.localdomain localhost
+127.0.1.1 lfs.berzerkula.org lfs
+192.168.1.196 lfs.berzerkula.org lfs
+::1 localhost ip6-localhost ip6-loopback
+ff02::1 ip6-allnodes
+ff02::2 ip6-allrouters
+
+# End /etc/hosts
+EOF
diff --git a/chapter9/shells.sh b/chapter9/shells.sh
index dbeced4..6af00e0 100644
--- a/chapter9/shells.sh
+++ b/chapter9/shells.sh
@@ -1,10 +1,10 @@
-#!/bin/bash
-
-cat > /etc/shells << "EOF"
-# Begin /etc/shells
-
-/bin/sh
-/bin/bash
-
-# End /etc/shells
-EOF
+#!/bin/bash
+
+cat > /etc/shells << "EOF"
+# Begin /etc/shells
+
+/bin/sh
+/bin/bash
+
+# End /etc/shells
+EOF