#!/usr/bin/env sh #Read DHCP sudo dhclient eth0 #SET-Vars RES=$(sudo fbset -s | grep -w "mode" | cut -d'"' -f 2 | sed -r 's/[x]+/,/g') WBS=$(sudo cat /var/lib/dhcp/* | grep "option url" | tail -1 | awk '{print substr($3,2,length($3)-3)}') SCREEN=$(sudo cat /var/lib/dhcp/* | grep "option screen" | tail -1 | awk '{print substr($3,2,length($3)-3)}') #Displayconfig if [ -z "$SCREEN" ] then xset -dpms xset s noblank xset s off else xset s $SCREEN fi #NO-Var fallback site if [ -z "$WBS" ] then WBS=https://www.wis.gmbh/ fi #Start Chromium chromium-browser $WBS \ --window-size=$RES \ --window-position=0,0 \ --start-fullscreen \ --kiosk \ --noerrdialogs \ --disable-translate \ --no-first-run \ --fast \ --fast-start \ --disable-infobars \ --disable-features=TranslateUI,PasswordManager,Autofill \ --disk-cache-dir=/dev/null \ --overscroll-history-navigation=0 \ --disable-pinch \ --disable-save-password-bubble \ --password-store=basic \ --disable-autofill \ --disable-password-manager-reauthentication \ --disable-password-manager \ --user-data-dir=/tmp/chromium-profile exit # Version 1.0: # Created 2024 by Tim Eertmoed, Christian Hampp @ WiS IT-Solutions GmbH, Germany to work on Raspian as custom pxe init script.