You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
rpi-check-overscan/check-overscan

18 lines
301 B

#!/bin/sh
configFile="/boot/firmware/config.txt";
found=;
while IFS= read -r line || [ -n "$line" ]; do
if [ "$line" = "disable_overscan=1" ]; then
found="1";
fi;
done < $configFile;
if [ ! $found ]; then
printf "
# Remove black borders
disable_overscan=1
" >> $configFile;
fi;