aboutsummaryrefslogtreecommitdiff
path: root/sh.Linux/init.sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-09-26 07:30:00 +0000
committerRoy Marples <roy@marples.name>2007-09-26 07:30:00 +0000
commite24d808fc50cba4f6da3ead3936e7960f38f60a3 (patch)
treee99877e8583a7520e31451ba97aa1cba22a9f3c1 /sh.Linux/init.sh
parent8a7b58a73d0ef5a9a7f583bf73b1dc917f2a29de (diff)
Handle fstab with spaces
Diffstat (limited to 'sh.Linux/init.sh')
-rwxr-xr-xsh.Linux/init.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/sh.Linux/init.sh b/sh.Linux/init.sh
index ab93f23c..b0c2215f 100755
--- a/sh.Linux/init.sh
+++ b/sh.Linux/init.sh
@@ -68,7 +68,7 @@ mount_svcdir() {
cp -p "${RC_SVCDIR}"/deptree "${RC_SVCDIR}"/depconfig \
"${RC_SVCDIR}"/nettree "${RC_LIBDIR}"/tmp 2>/dev/null
fi
- try mount -n ${mntcmd}
+ eval try mount -n ${mntcmd}
if ${dotmp} ; then
cp -p "${RC_LIBDIR}"/tmp/deptree "${RC_LIBDIR}"/tmp/depconfig \
"${RC_LIBDIR}"/tmp/nettree "${RC_SVCDIR}" 2>/dev/null
@@ -122,7 +122,7 @@ if ${mountproc} ; then
[ "${RC_UNAME}" = "GNU/kFreeBSD" ] && proc="linprocfs"
ebegin "Mounting ${procfs} at /proc"
mntcmd="$(fstabinfo --mountcmd /proc)"
- try mount -n ${mntcmd:--t ${procfs} -o noexec,nosuid,nodev proc /proc}
+ eval try mount -n ${mntcmd:--t ${procfs} -o noexec,nosuid,nodev proc /proc}
eend $?
fi
unset mountproc
@@ -143,7 +143,7 @@ if [ "${RC_UNAME}" != "GNU/kFreeBSD" -a "${RC_SYS}" != "VPS" -a "${K26}" = "0" ]
if ! mountinfo --quiet /sys ; then
ebegin "Mounting sysfs at /sys"
mntcmd="$(fstabinfo --mountcmd /sys)"
- try mount -n ${mntcmd:--t sysfs -o noexec,nosuid,nodev sysfs /sys}
+ eval try mount -n ${mntcmd:--t sysfs -o noexec,nosuid,nodev sysfs /sys}
eend $?
fi
else
@@ -212,7 +212,7 @@ if grep -Eq "[[:space:]]+devpts$" /proc/filesystems && \
if [ -d /dev/pts ] ; then
ebegin "Mounting devpts at /dev/pts"
mntcmd="$(fstabinfo --mountcmd /dev/pts)"
- try mount -n ${mntcmd:--t devpts -o gid=5,mode=0620,noexec,nosuid devpts /dev/pts}
+ eval try mount -n ${mntcmd:--t devpts -o gid=5,mode=0620,noexec,nosuid devpts /dev/pts}
eend $?
fi
fi