From: jow Date: Tue, 22 Sep 2009 15:07:12 +0000 (+0000) Subject: [scripts] use mktemp instead of tempfile in combined-image.sh to make it work on... X-Git-Url: http://git.ozo.com/?p=openwrt-10.03%2F.git;a=commitdiff_plain;h=4ad5e7f41ddcb6cd526aaa086fc91a07c4d75bb4;hp=1eb016da891eddcb2109616800014dcc1ea73bde [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 --- diff --git a/scripts/combined-image.sh b/scripts/combined-image.sh index eecd3d7f2..30373e756 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