mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
Added brightness fix
This commit is contained in:
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 16 January 2023
|
||||
# Updated : 16 March 2024
|
||||
# Purpose : Fix screen brightness on Panasonic hardware
|
||||
|
||||
et-log "Installing Panasonic brightness fix..."
|
||||
|
||||
apt install inotify-tools -y
|
||||
|
||||
if [ ! -e $ET_HOME/sbin ]; then
|
||||
mkdir -v -p $ET_HOME/sbin
|
||||
chown -v $ET_USER:$ET_GROUP $ET_HOME/sbin
|
||||
fi
|
||||
|
||||
cp -v ../overlay/$ET_HOME/sbin/panasonic-set-brightness.sh $ET_HOME/sbin/
|
||||
chmod -v 755 $ET_HOME/sbin/panasonic-set-brightness.sh
|
||||
chown -v $ET_USER:$ET_GROUP $ET_HOME/sbin/*
|
||||
|
||||
cp -v ../overlay/lib/systemd/system/panasonic-brightness.service /lib/systemd/system/
|
||||
|
||||
systemctl daemon-reload
|
||||
systemctl enable panasonic-brightness
|
||||
systemctl start panasonic-brightness
|
||||
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 16 March 2024
|
||||
# Purpose : Minimal install of image build tools for Ubuntu
|
||||
set -e
|
||||
|
||||
. ./env.sh
|
||||
. ./functions.sh
|
||||
|
||||
exitIfNotRoot
|
||||
|
||||
./bootstrap.sh
|
||||
./update-apt.sh
|
||||
|
||||
et-log "Installing tools for building custom ISO image"
|
||||
if ! command -v cubic
|
||||
then
|
||||
sudo apt-add-repository universe -y
|
||||
sudo apt-add-repository ppa:cubic-wizard/release -y
|
||||
sudo apt update
|
||||
sudo apt install --no-install-recommends cubic -y
|
||||
fi
|
||||
Reference in New Issue
Block a user