dracut-lib: add source_all to library

The network root handler will need this.
master
David Dillow 2009-06-01 00:39:56 -04:00
parent 9810ce7e38
commit ae5bc1fd8a
2 changed files with 6 additions and 6 deletions

View File

@ -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
}

View File

@ -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"