From 2b866f264fa2ea9cda891018234414c4f4942eb8 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Sun, 26 Apr 2009 21:13:26 +0000 Subject: Stop using needless {} in vars --- sh/init.sh.Linux.in | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'sh/init.sh.Linux.in') diff --git a/sh/init.sh.Linux.in b/sh/init.sh.Linux.in index f38fe4e..3fe0374 100644 --- a/sh/init.sh.Linux.in +++ b/sh/init.sh.Linux.in @@ -1,6 +1,6 @@ #!@SHELL@ # Copyright 1999-2007 Gentoo Foundation -# Copyright 2007-2008 Roy Marples +# Copyright 2007-2009 Roy Marples # All rights reserved. Released under the 2-clause BSD license. # This basically mounts $RC_SVCDIR as a ramdisk. @@ -14,7 +14,7 @@ mount_svcdir() if grep -Eq "[[:space:]]+tmpfs$" /proc/filesystems; then fs="tmpfs" - fsopts="${fsopts},mode=0755,size=${svcsize}k" + fsopts="$fsopts,mode=0755,size=${svcsize}k" elif grep -Eq "[[:space:]]+ramfs$" /proc/filesystems; then fs="ramfs" # ramfs has no special options @@ -22,8 +22,8 @@ mount_svcdir() && grep -Eq "[[:space:]]+ext2$" /proc/filesystems; then devdir="/dev/ram0" fs="ext2" - dd if=/dev/zero of="${devdir}" bs=1k count="${svcsize}" - mkfs -t "${fs}" -i 1024 -vm0 "${devdir}" "${svcsize}" + dd if=/dev/zero of="$devdir" bs=1k count="$svcsize" + mkfs -t "$fs" -i 1024 -vm0 "$devdir" "$svcsize" else echo eerror "OpenRC requires tmpfs, ramfs or a ramdisk + ext2" @@ -33,8 +33,8 @@ mount_svcdir() fi # If we have no entry in fstab for $RC_SVCDIR, provide our own - if ! fstabinfo --mount "${RC_SVCDIR}"; then - mount -n -t "${fs}" ${fsopts} "${devdir}" "${RC_SVCDIR}" + if ! fstabinfo --mount "$RC_SVCDIR"; then + mount -n -t "$fs" $fsopts "$devdir" "$RC_SVCDIR" fi } @@ -50,7 +50,7 @@ mountproc=true if [ -e /proc/uptime ]; then up="$(cat /proc/uptime)" sleep 1 - if [ "${up}" = "$(cat /proc/uptime)" ]; then + if [ "$up" = "$(cat /proc/uptime)" ]; then eerror "You have cruft in /proc that should be deleted" else einfo "/proc is already mounted, skipping" @@ -58,14 +58,14 @@ if [ -e /proc/uptime ]; then fi fi -if ${mountproc}; then +if $mountproc; then procfs="proc" - [ "${RC_UNAME}" = "GNU/kFreeBSD" ] && proc="linprocfs" + [ "$RC_UNAME" = "GNU/kFreeBSD" ] && proc="linprocfs" ebegin "Mounting /proc" if ! fstabinfo --mount /proc; then - mount -n -t "${procfs}" -o noexec,nosuid,nodev proc /proc + mount -n -t "$procfs" -o noexec,nosuid,nodev proc /proc fi eend $? fi -. "${RC_LIBDIR}"/sh/init-common-post.sh +. "$RC_LIBDIR"/sh/init-common-post.sh -- cgit v1.2.3