1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-09-28 23:21:26 +02:00

scripts: fix ubinize-image on OS X

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

SVN-Revision: 44761
This commit is contained in:
Felix Fietkau 2015-03-15 05:12:11 +00:00
parent d9ddc95ce5
commit 08706120bb

@ -98,7 +98,11 @@ if [ ! -x "$ubinize" ]; then
exit 1
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"
cat "$ubinizecfg"
@ -108,4 +112,3 @@ err="$?"
rm "$ubinizecfg"
exit $err