aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/combined-image.sh
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-09-22 15:07:12 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-09-22 15:07:12 +0000
commitc48f9d29f05201372b089960d3174c07f028506e (patch)
tree0c16b46233d09ef9c47531678f88a22e42297b6d /scripts/combined-image.sh
parent29ea3214a9b9479cf3d642a2b1f7249182103a60 (diff)
downloadmaster-187ad058-c48f9d29f05201372b089960d3174c07f028506e.tar.gz
master-187ad058-c48f9d29f05201372b089960d3174c07f028506e.tar.bz2
master-187ad058-c48f9d29f05201372b089960d3174c07f028506e.zip
[scripts] use mktemp instead of tempfile in combined-image.sh to make it work on OS X
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17674 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts/combined-image.sh')
-rw-r--r--scripts/combined-image.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/combined-image.sh b/scripts/combined-image.sh
index eecd3d7f20..30373e7566 100644
--- a/scripts/combined-image.sh
+++ b/scripts/combined-image.sh
@@ -8,8 +8,8 @@ BLKSZ=65536
}
# Make sure provided images are 64k aligned.
-kern=$(tempfile)
-root=$(tempfile)
+kern=$(mktemp)
+root=$(mktemp)
dd if="$1" of="$kern" bs=$BLKSZ conv=sync 2>/dev/null
dd if="$2" of="$root" bs=$BLKSZ conv=sync 2>/dev/null