Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 82a34566 authored by Robert Nelson's avatar Robert Nelson
Browse files

scripts: tie in flasher script


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent 5694b644
Branches
Tags
No related merge requests found
......@@ -53,14 +53,12 @@ start|reload|force-reload|restart)
fi
fi
#if [ -f /usr/local/bin/node ] && [ -f /opt/cloud9/server.js ] ; then
#/usr/local/bin/node /opt/cloud9/server.js -l 0.0.0.0 -w /var/lib/cloud9 -p 3000 >/opt/cloud9/log 2>&1 &
#fi
#if [ -f /opt/cloud9/bin/cloud9.sh ] ; then
#/opt/cloud9/bin/cloud9.sh -l 0.0.0.0 -w /var/lib/cloud9 -p 3000 >/opt/cloud9/log 2>&1 &
#fi
if [ -f /boot/uboot/flash-eMMC.txt ] ; then
if [ -f /opt/scripts/beaglebone-black-eMMC-flasher.sh ] ; then
mkdir -p /boot/uboot/debug/
/bin/bash /opt/scripts/beaglebone-black-eMMC-flasher.sh >/boot/uboot/debug/flash-eMMC.log 2>&1
fi
fi
;;
stop)
exit 0
......
......@@ -42,4 +42,11 @@ if [ -f /boot/uboot/SOC.sh ] && [ -f /boot/uboot/run_boot-scripts ] ; then
/bin/sh /opt/boot-scripts/${board}.sh >/dev/null 2>&1 &
fi
fi
if [ -f /boot/uboot/flash-eMMC.txt ] ; then
if [ -f /opt/scripts/beaglebone-black-eMMC-flasher.sh ] ; then
mkdir -p /boot/uboot/debug/
/bin/bash /opt/scripts/beaglebone-black-eMMC-flasher.sh >/boot/uboot/debug/flash-eMMC.log 2>&1
fi
fi
end script
......@@ -766,6 +766,9 @@ if [ "x${chroot_enable_xorg}" = "xenable" ] ; then
sudo mv /tmp/${wfile} ${tempdir}/etc/X11/${wfile}
fi
sudo mkdir -p ${tempdir}/opt/scripts/ || true
sudo cp -v ${DIR}/device_scripts/*.sh ${tempdir}/opt/scripts/
if [ -d ${DIR}/deploy/${export_filename}/ ] ; then
rm -rf ${DIR}/deploy/${export_filename}/ || true
fi
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment