aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2006-01-31 21:33:22 +0000
committerPeter Jones <pjones@redhat.com>2006-01-31 21:33:22 +0000
commit5a5c0e62bded1e16845a4507ab0e86362665a438 (patch)
tree6745f84f2bc4fe800847634cfcb5ab5382478412
parent52e5ac557c6c4aebaa3d93ca13ce262d8ff6d587 (diff)
downloadinitscripts-5a5c0e62bded1e16845a4507ab0e86362665a438.tar
initscripts-5a5c0e62bded1e16845a4507ab0e86362665a438.tar.gz
initscripts-5a5c0e62bded1e16845a4507ab0e86362665a438.tar.bz2
initscripts-5a5c0e62bded1e16845a4507ab0e86362665a438.tar.xz
initscripts-5a5c0e62bded1e16845a4507ab0e86362665a438.zip
- two more silly typos
-rwxr-xr-xrc.d/init.d/functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index 808d77ee..01d0a503 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -483,7 +483,7 @@ get_numeric_dev() {
if [ "$1" == "hex" ]; then
fmt="%x:%x"
fi
- ls -l "$1" | awk '{ print $5 $6 }' | awk -F ',' "{ printf \"$fmt\", \$1, \$2 }"
+ ls -l "$2" | awk '{ print $5 $6 }' | awk -F ',' "{ printf \"$fmt\", \$1, \$2 }"
) 2>/dev/null
}
@@ -493,7 +493,7 @@ resolve_dm_name() {
(
name="$1"
- line=$(/sbin/dmraid -ay -t --ignorelocking | awk -F ':' "{ if (\$1 =~ /^$name$/) { print \$2; }}")
+ line=$(/sbin/dmraid -ay -t --ignorelocking | awk -F ':' "{ if (\$1 ~ /^$name$/) { print \$2; }}")
newline=$line
for x in $line ; do
if [[ "$x" =~ "^/dev/" ]] ; then