Created et-data group for shared data access; made et-data the default group for all user accounts; removed ET_USER as a service user is no longer required; set the default umask to 002; refactored Panasonic brightness fix to remove duplicative installation tasks; added first round of radio configuration

This commit is contained in:
Gaston Gonzalez
2024-10-09 14:40:49 -07:00
parent e11178c6e8
commit 69ef9270ae
8 changed files with 39 additions and 21 deletions
+8 -4
View File
@@ -2,14 +2,18 @@
#
# Author : Gaston Gonzalez
# Date : 16 March 2024
# Updated : 1 October 2024
# Purpose : Configure users
# Updated : 9 October 2024
# Purpose : Configure users and groups
set -e
et-log "Configuring users"
et-log "Adding '${ET_GROUP}' group..."
groupadd -g 1981 ${ET_GROUP}
et-log "Configuring users..."
cp -r ../overlay/etc/skel /etc/
[ ! -e /etc/skel/Desktop ] && mkdir /etc/skel/Desktop
et-log "Add all users to dialout group"
et-log "Add all users to dialout group..."
cp -v -r ../overlay/etc/adduser.conf /etc/
+1 -2
View File
@@ -6,8 +6,7 @@
# Purpose : Global environment variables
export ET_HOME=/opt/emcomm-tools
export ET_USER=games
export ET_GROUP=games
export ET_GROUP=et-data
export ET_TEMP_DIR=/tmp/et
export ET_LOG_FILE=$ET_TEMP_DIR/et.log
+1 -10
View File
@@ -2,22 +2,13 @@
#
# Author : Gaston Gonzalez
# Date : 16 January 2023
# Updated : 16 March 2024
# Updated : 9 October 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
+6 -1
View File
@@ -2,6 +2,7 @@
#
# Author : Gaston Gonzalez
# Date : 6 October 2024
# Updated : 9 October 2024
# Purpose : Install EmComm Tools applications
et-log "Installing EmComm Tools applications..."
@@ -11,4 +12,8 @@ if [ ! -e $ET_HOME ]; then
fi
cp -v -r ../overlay/$ET_HOME/* $ET_HOME
chown -v -R $ET_USER:$ET_GROUP $ET_HOME
et-log "Setting up permission for shared data access..."
chgrp -v -R $ET_GROUP $ET_HOME/conf/radios.d
chmod -v 775 $ET_HOME/conf/radios.d
chmod -v 664 $ET_HOME/conf/radios.d/*.json