data/config/.xinitrc aktualisiert
This commit is contained in:
57
data/config/.xinitrc
Normal file
57
data/config/.xinitrc
Normal file
@@ -0,0 +1,57 @@
|
||||
#!/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 +dpms
|
||||
xset dmps 0 0 $SCREEN
|
||||
fi
|
||||
|
||||
#NO-Var fallback site
|
||||
if [ -z "$WBS" ]
|
||||
then
|
||||
WBS=https://www.wis.gmbh/
|
||||
fi
|
||||
|
||||
sudo systemctl stop watchdog-monitor
|
||||
sudo systemctl stop chromium-monitor
|
||||
sudo systemctl start watchdog-monitor
|
||||
sudo systemctl start chromium-monitor
|
||||
|
||||
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.
|
||||
Reference in New Issue
Block a user