mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 23:51:54 +02:00
[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
This commit is contained in:
parent
1eb016da89
commit
4ad5e7f41d
@ -8,8 +8,8 @@ BLKSZ=65536
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Make sure provided images are 64k aligned.
|
# Make sure provided images are 64k aligned.
|
||||||
kern=$(tempfile)
|
kern=$(mktemp)
|
||||||
root=$(tempfile)
|
root=$(mktemp)
|
||||||
dd if="$1" of="$kern" bs=$BLKSZ conv=sync 2>/dev/null
|
dd if="$1" of="$kern" bs=$BLKSZ conv=sync 2>/dev/null
|
||||||
dd if="$2" of="$root" bs=$BLKSZ conv=sync 2>/dev/null
|
dd if="$2" of="$root" bs=$BLKSZ conv=sync 2>/dev/null
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user