summaryrefslogtreecommitdiff
path: root/hook-functions
diff options
context:
space:
mode:
authorMichael Prokop <mika@debian.org>2010-06-14 12:15:07 +0200
committerMichael Prokop <mika@debian.org>2010-06-14 12:15:07 +0200
commitab28c77261267a14cc7308e8c4d7a0b48a8ac2ab (patch)
tree86d47628ed391bd636cdb6b5e45c84426d693dc3 /hook-functions
parent60afd2a944cf36a5bce6ca3b4c07a422e98efeba (diff)
downloadinitramfs-tools-ab28c77261267a14cc7308e8c4d7a0b48a8ac2ab.tar.gz
initramfs-tools-ab28c77261267a14cc7308e8c4d7a0b48a8ac2ab.zip
code cleanup: consequently replace spaces in indentions with tabs to unify coding stile
Signed-off-by: Michael Prokop <mika@debian.org>
Diffstat (limited to 'hook-functions')
-rw-r--r--hook-functions18
1 files changed, 9 insertions, 9 deletions
diff --git a/hook-functions b/hook-functions
index 8b6a89c..c456c5d 100644
--- a/hook-functions
+++ b/hook-functions
@@ -72,7 +72,7 @@ manual_add_modules()
# /proc/modules exists
if [ ! -e /proc/modules ] ; then
continue
- fi
+ fi
if grep -q "^$(basename "${kmod}" .ko)[[:space:]]" \
/proc/modules \
@@ -127,10 +127,10 @@ copy_exec() {
# Copy the dependant libraries
for x in $(ldd ${src} 2>/dev/null | sed -e '
- /\//!d;
- /linux-gate/d;
- /=>/ {s/.*=>[[:blank:]]*\([^[:blank:]]*\).*/\1/};
- s/[[:blank:]]*\([^[:blank:]]*\) (.*)/\1/' 2>/dev/null); do
+ /\//!d;
+ /linux-gate/d;
+ /=>/ {s/.*=>[[:blank:]]*\([^[:blank:]]*\).*/\1/};
+ s/[[:blank:]]*\([^[:blank:]]*\) (.*)/\1/' 2>/dev/null); do
# Try to use non-optimised libraries where possible.
# We assume that all HWCAP libraries will be in tls,
@@ -166,7 +166,7 @@ copy_modules_dir()
if [ "${verbose}" = "y" ]; then
echo "Copying module directory ${dir}"
if [ $# -ge 1 ]; then
- echo "(excluding $*)"
+ echo "(excluding $*)"
fi
fi
while [ $# -ge 1 ]; do
@@ -274,7 +274,7 @@ dep_add_modules()
# lvm on md or luks on md
if [ "${block#md}" != "${block}" ]; then
block=$(grep "^${block}" /proc/mdstat | \
- awk "{gsub(/^${block} : .* (multipath|linear|raid[[:digit:]]+)\ /,\"\")};1")
+ awk "{gsub(/^${block} : .* (multipath|linear|raid[[:digit:]]+)\ /,\"\")};1")
block="${block%%\[*}"
fi
# luks or lvm on cciss or ida
@@ -531,8 +531,8 @@ check_minkver()
fi
set_initlist
for cm_x in ${initlist:-}; do
- # sed: keep last line starting with MINKVER=,
- # remove MINKVER= and trailing space
+ # sed: keep last line starting with MINKVER=,
+ # remove MINKVER= and trailing space
minver=$(sed '/^MINKVER=/!d;$!d;s/^MINKVER=//;s/[[:space:]]*$//' "${initdir}/${cm_x}")
if [ -z "${tmp}" ]; then
continue