# The URL variuabile where we will store the final address to open URL='' # This is usually the case of a Raspberry Pi-like installation ( arm platforms ) if [ -f "/boot/chromium-autostart-url.txt" ]; then URL=`cat /boot/chromium-autostart-url.txt` # This is probably the case of generic setups on x86 platforms elif [ -f "/home/chromium/chromium-autostart-url.txt" ]; then URL=`cat /home/chromium/chromium-autostart-url.txt` fi if [ ! -z "$URL" ]; then # Autostart Chromium in Fullscreen mode /usr/bin/xinit /usr/bin/chromium --desktop-window-1080p --kiosk "$URL" else echo -e "==> [ERROR] No 'chromium-autostart-url.txt' file found." fi