summaryrefslogtreecommitdiff
path: root/sh.Linux
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-11-28 15:45:03 +0000
committerRoy Marples <roy@marples.name>2007-11-28 15:45:03 +0000
commitac9279cc0d5a00bc17908b2914941186020cd3ce (patch)
tree850a4fe19917113e75bfd2e79d00b58208468503 /sh.Linux
parent444f23e2d158389b22d40537fc9b027d9f575229 (diff)
downloadopenrc-ac9279cc0d5a00bc17908b2914941186020cd3ce.tar.gz
openrc-ac9279cc0d5a00bc17908b2914941186020cd3ce.tar.bz2
openrc-ac9279cc0d5a00bc17908b2914941186020cd3ce.tar.xz
Massive whitespace cleanup
Diffstat (limited to 'sh.Linux')
-rwxr-xr-xsh.Linux/init-early.sh4
-rwxr-xr-xsh.Linux/init.sh4
2 files changed, 4 insertions, 4 deletions
diff --git a/sh.Linux/init-early.sh b/sh.Linux/init-early.sh
index 1fcb614..8e0af34 100755
--- a/sh.Linux/init-early.sh
+++ b/sh.Linux/init-early.sh
@@ -26,12 +26,12 @@
# Try and set a font and as early as we can
if [ -e /etc/runlevels/"${RC_DEFAULTLEVEL}"/consolefont \
- -o -e /etc/runlevels/"${RC_BOOTLEVEL}"/consolefont ] ; then
+ -o -e /etc/runlevels/"${RC_BOOTLEVEL}"/consolefont ]; then
termencoding="(K"
[ -e "${RC_LIBDIR}"/console/unicode ] && termencoding="%G"
CONSOLE="${CONSOLE:-/dev/console}"
printf "\033%s" "${termencoding}" >"${CONSOLE}" 2>/dev/null
- if [ -r "${RC_LIBDIR}"/console/font -a -x /bin/setfont ] ; then
+ if [ -r "${RC_LIBDIR}"/console/font -a -x /bin/setfont ]; then
font="$(cat "${RC_LIBDIR}"/console/font)"
[ -c "${CONSOLE}" ] && cons="-C ${CONSOLE}"
setfont ${cons} "${RC_LIBDIR}"/console/"${font}" 2>/dev/null
diff --git a/sh.Linux/init.sh b/sh.Linux/init.sh
index 2d51e8e..524e753 100755
--- a/sh.Linux/init.sh
+++ b/sh.Linux/init.sh
@@ -146,7 +146,7 @@ if [ -e /proc/uptime ]; then
unset up
fi
-if ${mountproc} ; then
+if ${mountproc}; then
procfs="proc"
[ "${RC_UNAME}" = "GNU/kFreeBSD" ] && proc="linprocfs"
ebegin "Mounting ${procfs} at /proc"
@@ -242,7 +242,7 @@ for x in "devpts /dev/pts 0755 ,gid=5,mode=0620" "tmpfs /dev/shm 1777 ,nodev"; d
if [ ! -d "$2" ] && \
[ "${m}" = "devfs" -o "${m}" = "udev" ]; then
- mkdir -m "$3" -p "$2" >/dev/null 2>/dev/null || \
+ mkdir -m "$3" -p "$2" >/dev/null 2>&1 || \
ewarn "Could not create $2!"
fi