diff --git a/VERSION.txt b/VERSION.txt index 7f20734..e6d5cb8 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -1.0.1 \ No newline at end of file +1.0.2 \ No newline at end of file diff --git a/etc/openkiosk.conf-firefox b/etc/openkiosk.conf-firefox index 5326a97..574340d 100644 --- a/etc/openkiosk.conf-firefox +++ b/etc/openkiosk.conf-firefox @@ -27,6 +27,10 @@ DSP_STBY_SEC="600" DSP_SUSP_SEC="1200" 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 APP_CMD="firefox -private --kiosk $TGT_URL" ALIVE_STRING="firefox" diff --git a/kiosk-setup.sh b/kiosk-setup.sh index f14ac4a..cb88536 100755 --- a/kiosk-setup.sh +++ b/kiosk-setup.sh @@ -6,7 +6,7 @@ # SPDX-License-Identifier: GPL-2.0 -OK_VERSION="1.0.1" +OK_VERSION="1.0.2" # Test for superuser current_user=`whoami` diff --git a/usr/local/bin/cloneuser b/usr/local/bin/cloneuser deleted file mode 100644 index 78dba58..0000000 --- a/usr/local/bin/cloneuser +++ /dev/null @@ -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 - - - diff --git a/usr/local/bin/cloneuser b/usr/local/bin/cloneuser new file mode 120000 index 0000000..19288e1 --- /dev/null +++ b/usr/local/bin/cloneuser @@ -0,0 +1 @@ +cloneuser.sh \ No newline at end of file diff --git a/usr/local/bin/cloneuser.sh b/usr/local/bin/cloneuser.sh new file mode 100755 index 0000000..78dba58 --- /dev/null +++ b/usr/local/bin/cloneuser.sh @@ -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 + + +