mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-19 16:35:20 +01:00
Add build scripts for embedded (netboot) edition
This commit is contained in:
parent
71754dd164
commit
25947fc199
223 changed files with 32637 additions and 1 deletions
42
embedded/imager/board/overlay/etc/init.d/S99rpi-imager
Executable file
42
embedded/imager/board/overlay/etc/init.d/S99rpi-imager
Executable file
|
@ -0,0 +1,42 @@
|
|||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Script executed at start
|
||||
#
|
||||
|
||||
# Bail out on any error
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
#udevd --daemon
|
||||
#udevadm trigger
|
||||
if [ ! -e /dev/input/event0 ]; then
|
||||
echo ""
|
||||
echo "No input device detected"
|
||||
echo "Remove micro-USB cable and attach mouse to continue"
|
||||
echo ""
|
||||
until [ -e /dev/input/event0 ]
|
||||
do
|
||||
sleep 0.1
|
||||
done
|
||||
clear
|
||||
fi
|
||||
|
||||
echo Starting rpi-imager
|
||||
export QT_QPA_EGLFS_ALWAYS_SET_MODE=1
|
||||
PATH=/bin:/sbin:/usr/bin:/usr/sbin rpi-imager 2>/tmp/debug
|
||||
sync
|
||||
reboot -f
|
||||
;;
|
||||
|
||||
stop)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Usage: $0 {start|stop}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit $?
|
Loading…
Add table
Add a link
Reference in a new issue