diff options
author | Simon Rettberg | 2020-08-07 11:26:35 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-08-07 11:26:35 +0200 |
commit | 39521995cc4b8747366d37ffb3290fba97310b8a (patch) | |
tree | cd2d375f931b15b1f5abbd4fb6e3d4772a89f9b8 /core/modules/kexec-reboot | |
parent | Move bash completion script (diff) | |
download | mltk-39521995cc4b8747366d37ffb3290fba97310b8a.tar.gz mltk-39521995cc4b8747366d37ffb3290fba97310b8a.tar.xz mltk-39521995cc4b8747366d37ffb3290fba97310b8a.zip |
[kexec-reboot] Fix X/Y calc (follow 2d084c4826bb3d)
This might be a good candidate for a helper script
Diffstat (limited to 'core/modules/kexec-reboot')
-rwxr-xr-x | core/modules/kexec-reboot/data/opt/openslx/scripts/systemd-kexec_pre | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/kexec-reboot/data/opt/openslx/scripts/systemd-kexec_pre b/core/modules/kexec-reboot/data/opt/openslx/scripts/systemd-kexec_pre index 816a73ef..a19854d9 100755 --- a/core/modules/kexec-reboot/data/opt/openslx/scripts/systemd-kexec_pre +++ b/core/modules/kexec-reboot/data/opt/openslx/scripts/systemd-kexec_pre @@ -17,8 +17,8 @@ fi ppm_width="${ppm_size%% *}" ppm_height="${ppm_size#* }" ppm_height="${ppm_height%% *}" # make sure nothing weird is trailing -img_top="$(( ( screen_width - ppm_width ) / 2 ))" -img_left="$(( ( screen_height - ppm_height ) / 2 ))" +img_left="$(( ( screen_width - ppm_width ) / 2 ))" +img_top="$(( ( screen_height - ppm_height ) / 2 ))" # just checking if nothing too weird is set if [ -n "$img_left" ] && [ -n "$img_top" ] \ && [ "$img_left" -ge 0 ] && [ "$img_left" -lt 8096 ] \ |