diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/upd-bootimage | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/upd-bootimage b/scripts/upd-bootimage index 785f21723..3a005a536 100755 --- a/scripts/upd-bootimage +++ b/scripts/upd-bootimage @@ -37,4 +37,9 @@ gzip -9 < $INITRD > $INITRD.new cp $INITRD.new $MNTPOINT/initrd.img umount $MNTPOINT +if [ -n "$3" -a -f "$3" ]; then + echo "Replacing $3" + cp -f $INITRD.new $3 +fi + rm -rf $MNTPOINT $LOOPMNT $INITRD $INITRD.new |