projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
476eb1b
)
base/dracut-lib.sh: add arguments for source_hook() and source_all()
author
Harald Hoyer
<harald@redhat.com>
Mon, 23 Apr 2012 09:30:08 +0000
(11:30 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Mon, 23 Apr 2012 09:32:45 +0000
(11:32 +0200)
modules.d/99base/dracut-lib.sh
patch
|
blob
|
history
diff --git
a/modules.d/99base/dracut-lib.sh
b/modules.d/99base/dracut-lib.sh
index
a4aa20c
..
a6b8d1a
100755
(executable)
--- a/
modules.d/99base/dracut-lib.sh
+++ b/
modules.d/99base/dracut-lib.sh
@@
-264,15
+264,19
@@
setdebug
source_all() {
local f
- [ "$1" ] && [ -d "/$1" ] || return
- for f in "/$1"/*.sh; do [ -e "$f" ] && . "$f"; done
+ local _dir
+ _dir=$1; shift
+ [ "$_dir" ] && [ -d "/$_dir" ] || return
+ for f in "/$_dir"/*.sh; do [ -e "$f" ] && . "$f" "$@"; done
}
hookdir=/lib/dracut/hooks
export hookdir
source_hook() {
- source_all "/lib/dracut/hooks/$1"
+ local _dir
+ _dir=$1; shift
+ source_all "/lib/dracut/hooks/$_dir" "$@"
}
check_finished() {