torch-pi-gen/export-image/00-allow-rerun/00-run.sh

10 lines
266 B
Bash
Raw Permalink Normal View History

2016-05-05 18:43:33 +00:00
#!/bin/bash -e
2018-03-02 20:08:24 +00:00
if [ ! -x "${ROOTFS_DIR}/usr/bin/qemu-arm-static" ]; then
cp /usr/bin/qemu-arm-static "${ROOTFS_DIR}/usr/bin/"
2016-05-05 18:43:33 +00:00
fi
2019-06-07 16:30:05 +00:00
if [ -e "${ROOTFS_DIR}/etc/ld.so.preload" ]; then
mv "${ROOTFS_DIR}/etc/ld.so.preload" "${ROOTFS_DIR}/etc/ld.so.preload.disabled"
fi