aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2015-10-08 13:20:14 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2015-10-08 13:20:14 -0500
commitd5116cc697c9eb275ab8497939ab41504e5ce578 (patch)
treea4c84bf68cf930b0d5d978877e047d823f51f03b
parentb86d170037197d7bdcda57c7d4c09c17bda97f31 (diff)
localmount: white space cleanup
-rw-r--r--init.d/localmount.in31
1 files changed, 15 insertions, 16 deletions
diff --git a/init.d/localmount.in b/init.d/localmount.in
index dde94af0..1812089d 100644
--- a/init.d/localmount.in
+++ b/init.d/localmount.in
@@ -74,22 +74,21 @@ stop()
local aufs_branch aufs_mount_point aufs_si_id aufs_br_id branches
for aufs_si_dir in /sys/fs/aufs/si*; do
- if [ -d "${aufs_si_dir}" ]; then
- aufs_si_id="si=${aufs_si_dir#/sys/fs/aufs/si_}"
- aufs_mount_point="$(mountinfo -o ${aufs_si_id})"
- branches="$aufs_si_dir/br[0-9] $aufs_si_dir/br[0-9][0-9] $aufs_si_dir/br[0-9][0-9][0-9]"
- for x in $branches; do
- [ -e "${x}" ] || continue
- aufs_branch=$(sed 's/=.*//g' $x)
- eindent
- if ! mount -o "remount,del:$aufs_branch" "$aufs_mount_point" > /dev/null 2>&1; then
- ewarn "Failed to remove branch $aufs_branch from aufs \
- $aufs_mount_point"
- fi
- eoutdent
- sync
- done
- fi
+ [ -d "${aufs_si_dir}" ] || continue
+ aufs_si_id="si=${aufs_si_dir#/sys/fs/aufs/si_}"
+ aufs_mount_point="$(mountinfo -o ${aufs_si_id})"
+ branches="$aufs_si_dir/br[0-9] $aufs_si_dir/br[0-9][0-9] $aufs_si_dir/br[0-9][0-9][0-9]"
+ for x in $branches; do
+ [ -e "${x}" ] || continue
+ aufs_branch=$(sed 's/=.*//g' $x)
+ eindent
+ if ! mount -o "remount,del:$aufs_branch" "$aufs_mount_point" > /dev/null 2>&1; then
+ ewarn "Failed to remove branch $aufs_branch from aufs \
+ $aufs_mount_point"
+ fi
+ eoutdent
+ sync
+ done
done
fi