diff options
Diffstat (limited to 'sh.Linux')
-rwxr-xr-x | sh.Linux/init-early.sh | 4 | ||||
-rwxr-xr-x | sh.Linux/init.sh | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sh.Linux/init-early.sh b/sh.Linux/init-early.sh index 1fcb614e..8e0af34e 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 2d51e8e3..524e7538 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 |