amendments after integration test #3

This commit is contained in:
Jörn-Michael Miehe 2023-11-15 23:17:56 +01:00
parent 6d041e6918
commit 525b711005

View file

@ -1,7 +1,5 @@
#!/bin/sh #!/bin/sh
# issue: autologin doesn't work ...
######### #########
# start # # start #
######### #########
@ -48,9 +46,9 @@ screen_y="${screen_y_in:-$screen_y}"
sed -ri "s/^(SOFTWARE_CHROMIUM_RES_Y=)[0-9]+$/\1${screen_y}/" '/boot/dietpi.txt' sed -ri "s/^(SOFTWARE_CHROMIUM_RES_Y=)[0-9]+$/\1${screen_y}/" '/boot/dietpi.txt'
# chromium autostart # chromium autostart
echo '11' > '/boot/dietpi/.dietpi-autostart_index' # magic number
sed -ri "s/^(AUTO_SETUP_AUTOSTART_LOGIN_USER=).+$/\1dietpi/" '/boot/dietpi.txt' # run as "dietpi" sed -ri "s/^(AUTO_SETUP_AUTOSTART_LOGIN_USER=).+$/\1dietpi/" '/boot/dietpi.txt' # run as "dietpi"
sed -ri "s/^(SOFTWARE_CHROMIUM_AUTOSTART_URL=).+$/\1http:\/\/localhost\//" '/boot/dietpi.txt' # open "localhost" sed -ri "s/^(SOFTWARE_CHROMIUM_AUTOSTART_URL=).+$/\1http:\/\/localhost\//" '/boot/dietpi.txt' # open "localhost"
/boot/dietpi/dietpi-autostart 11 # 11: magic number for chromium autostart
# chromium language # chromium language
display_lang="en-US,en" display_lang="en-US,en"