Incorporate changes for version 1.0.2

This commit is contained in:
2026-02-25 13:57:09 -05:00
parent 7e861fbf09
commit b2402566a5
5 changed files with 26 additions and 21 deletions

View File

@@ -1 +1 @@
1.0.1 1.0.2

View File

@@ -27,6 +27,10 @@ DSP_STBY_SEC="600"
DSP_SUSP_SEC="1200" DSP_SUSP_SEC="1200"
DSP_OFF_SEC="1800" DSP_OFF_SEC="1800"
# Display rotation. Can be used to control the orientation of the display.
# Values are one of "normal", "left", "right", or "inverted".
ROTATION="normal"
# For standard kiosk functionality # For standard kiosk functionality
APP_CMD="firefox -private --kiosk $TGT_URL" APP_CMD="firefox -private --kiosk $TGT_URL"
ALIVE_STRING="firefox" ALIVE_STRING="firefox"

View File

@@ -6,7 +6,7 @@
# SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: GPL-2.0
OK_VERSION="1.0.1" OK_VERSION="1.0.2"
# Test for superuser # Test for superuser
current_user=`whoami` current_user=`whoami`

View File

@@ -1,19 +0,0 @@
#!/bin/bash
SRC=$1
DEST=$2
SRC_GROUPS=`id -Gn ${SRC}`
SRC_SHELL=$(awk -F : -v name=${SRC} '(name == $1) { print $7 }' /etc/passwd)
RAND_PW=`date +%s | sha256sum | base64 | head -c 32 ; echo`
echo "Creating user $DEST"
useradd --shell ${SRC_SHELL} --password ${RAND_PW} --create-home ${DEST}
for grp in ${SRC_GROUPS};do
if [ "$grp" != "$SRC" ]; then
echo "Adding user $DEST to group $grp."
usermod -a -G $grp ${DEST}
fi
done

1
usr/local/bin/cloneuser Symbolic link
View File

@@ -0,0 +1 @@
cloneuser.sh

19
usr/local/bin/cloneuser.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
SRC=$1
DEST=$2
SRC_GROUPS=`id -Gn ${SRC}`
SRC_SHELL=$(awk -F : -v name=${SRC} '(name == $1) { print $7 }' /etc/passwd)
RAND_PW=`date +%s | sha256sum | base64 | head -c 32 ; echo`
echo "Creating user $DEST"
useradd --shell ${SRC_SHELL} --password ${RAND_PW} --create-home ${DEST}
for grp in ${SRC_GROUPS};do
if [ "$grp" != "$SRC" ]; then
echo "Adding user $DEST to group $grp."
usermod -a -G $grp ${DEST}
fi
done