mirror of
https://github.com/dockur/windows.git
synced 2025-10-29 04:05:50 +00:00
Update install.sh
This commit is contained in:
parent
819075396e
commit
0c848a9039
1 changed files with 8 additions and 9 deletions
|
|
@ -833,14 +833,7 @@ copyOEM() {
|
||||||
|
|
||||||
local dir="$1"
|
local dir="$1"
|
||||||
local folder="/oem"
|
local folder="/oem"
|
||||||
local drivers="$TMP/drivers"
|
local src dest file
|
||||||
local src file
|
|
||||||
|
|
||||||
src=$(find "$dir" -maxdepth 1 -type d -iname sources | head -n 1)
|
|
||||||
|
|
||||||
if [ ! -d "$src" ]; then
|
|
||||||
error "failed to locate 'sources' folder in ISO image!" && return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
[ ! -d "$folder" ] && folder="/OEM"
|
[ ! -d "$folder" ] && folder="/OEM"
|
||||||
[ ! -d "$folder" ] && folder="$STORAGE/oem"
|
[ ! -d "$folder" ] && folder="$STORAGE/oem"
|
||||||
|
|
@ -850,7 +843,13 @@ copyOEM() {
|
||||||
local msg="Copying OEM folder to image..."
|
local msg="Copying OEM folder to image..."
|
||||||
info "$msg" && html "$msg"
|
info "$msg" && html "$msg"
|
||||||
|
|
||||||
local dest="$src/\$OEM\$/\$1/"
|
src=$(find "$dir" -maxdepth 1 -type d -iname sources | head -n 1)
|
||||||
|
|
||||||
|
if [ ! -d "$src" ]; then
|
||||||
|
error "failed to locate 'sources' folder in ISO image!" && return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
dest="$src/\$OEM\$/\$1/"
|
||||||
mkdir -p "$dest"
|
mkdir -p "$dest"
|
||||||
|
|
||||||
if ! cp -r "$folder" "$dest"; then
|
if ! cp -r "$folder" "$dest"; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue