projects
/
librecmc
/
librecmc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9ddc95
)
scripts: fix ubinize-image on OS X
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 15 Mar 2015 05:12:11 +0000
(
05:12
+0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 15 Mar 2015 05:12:11 +0000
(
05:12
+0000)
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
SVN-Revision: 44761
scripts/ubinize-image.sh
patch
|
blob
|
history
diff --git
a/scripts/ubinize-image.sh
b/scripts/ubinize-image.sh
index 6762c22bc4a6e27a149b36953dcb02c4796a7d52..b87cbb48dc8cc004d754e3b9c8001beb5f111393 100755
(executable)
--- a/
scripts/ubinize-image.sh
+++ b/
scripts/ubinize-image.sh
@@
-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
-