|
|
@ -3,13 +3,21 @@
|
|
|
|
case "$1" in
|
|
|
|
case "$1" in
|
|
|
|
|
|
|
|
|
|
|
|
configure)
|
|
|
|
configure)
|
|
|
|
if [ ! -f /root/.trinity/share/config/kpersonalizerrc ]; then
|
|
|
|
|
|
|
|
[ -d /root/.trinity/share/config ] ||
|
|
|
|
[ -d /root/.trinity/share/config ] ||
|
|
|
|
mkdir -p /root/.trinity/share/config
|
|
|
|
mkdir -p /root/.trinity/share/config
|
|
|
|
cat >/root/.trinity/share/config/kpersonalizerrc <<kpersonalizerrc
|
|
|
|
|
|
|
|
[General]
|
|
|
|
if [ ! -f /root/.trinity/share/config/kdeglobals ]; then
|
|
|
|
FirstLogin=false
|
|
|
|
RELEASE_VERSION="$(/opt/trinity/bin/tde-config --version | sed -n 's|^TDE: ||p')"
|
|
|
|
kpersonalizerrc
|
|
|
|
/opt/trinity/bin/kwriteconfig --file /root/.trinity/share/config/kdeglobals \
|
|
|
|
|
|
|
|
--group "Release Notes" \
|
|
|
|
|
|
|
|
--key "$RELEASE_VERSION" \
|
|
|
|
|
|
|
|
--type bool "true"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -f /root/.trinity/share/config/kpersonalizerrc ]; then
|
|
|
|
|
|
|
|
/opt/trinity/bin/kwriteconfig --file /root/.trinity/share/config/kpersonalizerrc \
|
|
|
|
|
|
|
|
--group "General" \
|
|
|
|
|
|
|
|
--key "FirstLogin" \
|
|
|
|
|
|
|
|
--type bool "false"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
|
|