#!/bin/sh # f7-mfg GUI launcher (PID 1). Waits for the browser framebuffer, then runs the # GUI; respawns it if it exits (e.g. before /dev/fb0 or /dev/input is wired). export PATH=/usr/bin:/bin:/sbin:/usr/sbin mount -t tmpfs none /tmp 2>/dev/null mount -t proc none /proc 2>/dev/null i=0 while [ $i -lt 100 ]; do [ -e /dev/fb0 ] && break; sleep 0.1; i=$((i+1)); done echo "f7-mfg-init: /dev/fb0 $( [ -e /dev/fb0 ] && echo present || echo absent ), starting GUI" while true; do /usr/bin/f7mfg-gui sleep 1 done