summaryrefslogtreecommitdiff
path: root/hook-functions
diff options
context:
space:
mode:
Diffstat (limited to 'hook-functions')
-rw-r--r--hook-functions24
1 files changed, 12 insertions, 12 deletions
diff --git a/hook-functions b/hook-functions
index f5da1c4..ffb6a67 100644
--- a/hook-functions
+++ b/hook-functions
@@ -3,7 +3,7 @@
catenate_cpiogz() {
# Sanity check
if [ ! -e "${1}" ]; then
- echo "W:catenate_cpiogz: arg1='${1}' does not exist." >&2
+ echo "W: catenate_cpiogz: arg1='${1}' does not exist." >&2
return
fi
@@ -29,7 +29,7 @@ add_modules_from_file()
{
# Sanity check
if [ ! -e "${1}" ]; then
- echo "W:add_modules_from_file: arg1='${1}' does not exist." >&2
+ echo "W: add_modules_from_file: arg1='${1}' does not exist." >&2
return
fi
@@ -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
@@ -183,7 +183,7 @@ sys_walk_mod_add()
{
local driver_path module
device_path="$1"
-
+
while [ "${device_path}" != "/sys" ]; do
sys_walk_modalias ${device_path}
driver_path="$(readlink -f ${device_path}/driver/module)"
@@ -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