Changeset 18920


Ignore:
Timestamp:
2009-12-24T11:34:37+01:00 (8 years ago)
Author:
nbd
Message:

scripts/combined-image.sh: remove the use of mktemp to make it more portable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/combined-image.sh

    r17674 r18920  
    88} 
    99 
     10IMAGE=${3:-openwrt-combined.img} 
     11 
    1012# Make sure provided images are 64k aligned. 
    11 kern=$(mktemp) 
    12 root=$(mktemp) 
     13kern="${IMAGE}.kernel" 
     14root="${IMAGE}.rootfs" 
    1315dd if="$1" of="$kern" bs=$BLKSZ conv=sync 2>/dev/null 
    1416dd if="$2" of="$root" bs=$BLKSZ conv=sync 2>/dev/null 
     
    2729        dd bs=$BLKSZ conv=sync; 
    2830  cat "$kern" "$root" 
    29 ) > ${3:-openwrt-combined.img} 2>/dev/null 
     31) > ${IMAGE} 2>/dev/null 
    3032 
    3133# Clean up. 
Note: See TracChangeset for help on using the changeset viewer.