diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-03-15 05:12:11 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-03-15 05:12:11 +0000 |
commit | bef082588530d1b0c1a6e77bc3039812c1b694e5 (patch) | |
tree | 767908986c15ea427211eec2c2d46541aa73fe50 /scripts | |
parent | 939d04060dc7460f4fe11e376c0d58afcc8d6eb4 (diff) | |
download | upstream-bef082588530d1b0c1a6e77bc3039812c1b694e5.tar.gz upstream-bef082588530d1b0c1a6e77bc3039812c1b694e5.tar.bz2 upstream-bef082588530d1b0c1a6e77bc3039812c1b694e5.zip |
scripts: fix ubinize-image on OS X
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44761 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/ubinize-image.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/ubinize-image.sh b/scripts/ubinize-image.sh index 6762c22bc4..b87cbb48dc 100755 --- 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 - |