Commit 19241ae2 authored by Anthony G. Basile's avatar Anthony G. Basile
Browse files

Improve readability of build scripts

parent b74b2c93
Loading
Loading
Loading
Loading
+104 −104
Original line number Diff line number Diff line
@@ -205,13 +205,13 @@ populate_etc()
{
	cd $WORKING/initramfs/etc

cat << EOF > fstab
	cat <<- EOF > fstab
	/dev/ram0     /           ext2    defaults   0 0
	none          /proc       proc    defaults   0 0
	EOF

	if [[ "x$DEBUG" = "xyes" ]] ; then
cat << EOF > inittab
		cat <<- EOF > inittab
		::sysinit:/etc/rcS
		tty1::respawn:/bin/setup
		tty2::respawn:/bin/nmeter '%79c'
@@ -221,7 +221,7 @@ tty5::askfirst:-/bin/sh
		tty6::askfirst:-/bin/sh
		EOF
	else
cat << EOF > inittab
		cat <<- EOF > inittab
		::sysinit:/etc/rcS
		tty1::respawn:/bin/setup
		tty2::respawn:/bin/nmeter '%79c'
@@ -230,7 +230,7 @@ tty4::respawn:/bin/haveged -r 0 -w 1024 -v 1 -F -f -
		EOF
	fi

cat << EOF > rcS
	cat <<- EOF > rcS
	#!/bin/sh
	/bin/mount -t proc proc /proc
	/bin/mount -o remount,rw /dev/ram0 /
@@ -239,7 +239,7 @@ EOF

	chmod 755 rcS

cat << EOF > udhcpc
	cat <<- EOF > udhcpc
	#!/bin/sh

	/sbin/ifconfig \$interface \$ip
@@ -255,7 +255,7 @@ EOF

	chmod 755 udhcpc

cat << EOF > udhcpc.nodns
	cat <<- EOF > udhcpc.nodns
	#!/bin/sh

	/sbin/ifconfig \$interface \$ip
@@ -267,45 +267,45 @@ EOF

	chmod 755 udhcpc.nodns

cat << EOF > resolv.conf
	cat <<- EOF > resolv.conf
	nameserver 127.0.0.1
	EOF

cat << EOF > ntpd.conf
	cat <<- EOF > ntpd.conf
	servers pool.ntp.org
	EOF

cat << EOF > services
	cat <<- EOF > services
	ntp 123/tcp
	ntp 123/udp
	EOF

cat << EOF > protocols
	cat <<- EOF > protocols
	ip   0
	icmp 1
	tcp  6
	udp  17
	EOF

cat << EOF > group
	cat <<- EOF > group
	root:x:0:
	tor:x:500:
	ntp:x:501:
	EOF

cat << EOF > gshadow
	cat <<- EOF > gshadow
	root:*::
	tor:*::
	ntp:*::
	EOF

cat << EOF > passwd
	cat <<- EOF > passwd
	root:x:0:0:,,,:/:/bin/sh
	tor:x:500:500:,,,:/var/empty:
	ntp:x:501:501:,,,:/var/empty:
	EOF

cat << EOF > shadow
	cat <<- EOF > shadow
	root:*:14000:0:99999:7::
	tor:*:14000:0:99999:7::
	ntp:*:14000:0:99999:7::