From: David Dillow Date: Mon, 1 Jun 2009 04:39:56 +0000 (-0400) Subject: dracut-lib: add source_all to library X-Git-Tag: 0.1~141^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae5bc1fd8ab2aab28b335adf456bc41c0175c4e7;p=thirdparty%2Fdracut.git dracut-lib: add source_all to library The network root handler will need this. --- diff --git a/modules.d/99base/dracut-lib b/modules.d/99base/dracut-lib index 1f31933ff..7078827b3 100644 --- a/modules.d/99base/dracut-lib +++ b/modules.d/99base/dracut-lib @@ -14,3 +14,9 @@ getarg() { done return 1 } + +source_all() { + local f + [ "$1" ] && [ -d "/$1" ] || return + for f in "/$1"/*.sh; do [ -f "$f" ] && . "$f"; done +} diff --git a/modules.d/99base/init b/modules.d/99base/init index ebbc6ada9..73e96fd4c 100755 --- a/modules.d/99base/init +++ b/modules.d/99base/init @@ -14,12 +14,6 @@ emergency_shell() sh -i } -source_all() { - local f - [ "$1" ] && [ -d "/$1" ] || return - for f in "/$1"/*.sh; do [ -f "$f" ] && . "$f"; done -} - export PATH=/sbin:/bin:/usr/sbin:/usr/bin export TERM=linux NEWROOT="/sysroot"