Skip to content
Snippets Groups Projects
Commit 08706120 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

scripts: fix ubinize-image on OS X


Signed-off-by: default avatarÁlvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 44761
parent d9ddc95c
No related branches found
No related tags found
No related merge requests found
...@@ -98,7 +98,11 @@ if [ ! -x "$ubinize" ]; then ...@@ -98,7 +98,11 @@ if [ ! -x "$ubinize" ]; then
exit 1 exit 1
fi fi
ubinizecfg="$( mktemp )" ubinizecfg="$( mktemp 2> /dev/null )"
if [ -z "$ubinizecfg" ]; then
# try OSX signature
ubinizecfg="$( mktemp -t 'ubitmp' )"
fi
ubilayout "$ubootenv" "$rootfs" "$kernel" > "$ubinizecfg" ubilayout "$ubootenv" "$rootfs" "$kernel" > "$ubinizecfg"
cat "$ubinizecfg" cat "$ubinizecfg"
...@@ -108,4 +112,3 @@ err="$?" ...@@ -108,4 +112,3 @@ err="$?"
rm "$ubinizecfg" rm "$ubinizecfg"
exit $err exit $err
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment