Style fixes, as suggested by Jens Schweikhardt <schweikh@schweikhardt.net>

This commit is contained in:
Wes Peters 2004-04-06 23:15:48 +00:00
parent 2c1bb20746
commit 85d4d6aa5b
2 changed files with 6 additions and 9 deletions

View File

@ -40,11 +40,9 @@ start_cmd="ramdisk_start"
ramdisk_start()
{
for unit in $ramdisk_units
do
for unit in $ramdisk_units; do
eval mdoptions=\$ramdisk_${unit}_config
if [ "$mdoptions" = "${mdoptions##-t}" ]
then
if [ "$mdoptions" = "${mdoptions##-t}" ]; then
echo "Type not specified for md$unit"
continue
fi
@ -59,7 +57,7 @@ ramdisk_stop()
{
for unit in $ramdisk_units
do
if [ -c /dev/md$unit ] ; then
if [ -c /dev/md$unit ]; then
umount -f /dev/md$unit > /dev/null 2>&1
mdconfig -d -u $unit
fi

View File

@ -41,16 +41,15 @@ start_cmd="ramdisk_own_start"
ramdisk_own_start()
{
set -x
for unit in $ramdisk_units
do
for unit in $ramdisk_units; do
device="/dev/md$unit"
dir=`mount | grep $device | cut -d' ' -f3`
eval owner=\$ramdisk_${unit}_owner
eval perms=\$ramdisk_${unit}_perms
[ "X$owner" != "X" ] && chown -f $owner $device $dir
[ "X$perms" != "X" ] && chmod -f $perms /dev/md$unit $dir
[ "X$owner" != "X" ] && chown -f "$owner" $device $dir
[ "X$perms" != "X" ] && chmod -f "$perms" /dev/md$unit $dir
done
}