summaryrefslogtreecommitdiffstats
path: root/ubuntu/raring/metapackages/casper-trinity/scripts
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-03-28 14:13:18 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-03-28 14:13:18 -0500
commit4bc22e8b188aa26df8b1a23c39bb0f3c5b05b8b6 (patch)
treec6f53decaabed9678523a8bbd6a1000a9f3bf78f /ubuntu/raring/metapackages/casper-trinity/scripts
parent211d261d7778de1d9a773e7ec43a4e97b4bd7e57 (diff)
downloadtde-packaging-4bc22e8b188aa26df8b1a23c39bb0f3c5b05b8b6.tar.gz
tde-packaging-4bc22e8b188aa26df8b1a23c39bb0f3c5b05b8b6.zip
Split raring packaging into new directory due to defoma changes
Diffstat (limited to 'ubuntu/raring/metapackages/casper-trinity/scripts')
-rwxr-xr-xubuntu/raring/metapackages/casper-trinity/scripts/casper-bottom/15autologin-trinity41
-rwxr-xr-xubuntu/raring/metapackages/casper-trinity/scripts/casper-bottom/25adduser-trinity33
2 files changed, 74 insertions, 0 deletions
diff --git a/ubuntu/raring/metapackages/casper-trinity/scripts/casper-bottom/15autologin-trinity b/ubuntu/raring/metapackages/casper-trinity/scripts/casper-bottom/15autologin-trinity
new file mode 100755
index 000000000..a018471b7
--- /dev/null
+++ b/ubuntu/raring/metapackages/casper-trinity/scripts/casper-bottom/15autologin-trinity
@@ -0,0 +1,41 @@
+#!/bin/sh
+
+PREREQ=""
+DESCRIPTION="Setting up automatic login (Trinity)..."
+
+prereqs()
+{
+ echo "$PREREQ"
+}
+
+case $1 in
+# get pre-requisites
+prereqs)
+ prereqs
+ exit 0
+ ;;
+esac
+
+. /scripts/casper-functions
+
+log_begin_msg "$DESCRIPTION"
+
+if [ -f /root/etc/trinity/kdm/kdmrc ]; then
+ # Configure KDM-Trinity autologin
+ sed -i -r \
+ -e "s/^#?AutoLoginEnable=.*\$/AutoLoginEnable=true/" \
+ -e "s/^#?AutoLoginUser=.*\$/AutoLoginUser=$USERNAME/" \
+ -e "s/^#?AutoLoginAgain=.*\$/AutoLoginAgain=true/" \
+ /root/etc/trinity/kdm/kdmrc
+fi
+
+if [ -f /root/etc/trinity/tdm/tdmrc ]; then
+ # Configure TDM-Trinity autologin
+ sed -i -r \
+ -e "s/^#?AutoLoginEnable=.*\$/AutoLoginEnable=true/" \
+ -e "s/^#?AutoLoginUser=.*\$/AutoLoginUser=$USERNAME/" \
+ -e "s/^#?AutoLoginAgain=.*\$/AutoLoginAgain=true/" \
+ /root/etc/trinity/tdm/tdmrc
+fi
+
+log_end_msg
diff --git a/ubuntu/raring/metapackages/casper-trinity/scripts/casper-bottom/25adduser-trinity b/ubuntu/raring/metapackages/casper-trinity/scripts/casper-bottom/25adduser-trinity
new file mode 100755
index 000000000..bd764edcc
--- /dev/null
+++ b/ubuntu/raring/metapackages/casper-trinity/scripts/casper-bottom/25adduser-trinity
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+PREREQ=""
+DESCRIPTION="Adding live session user (Trinity)..."
+
+prereqs()
+{
+ echo "$PREREQ"
+}
+
+case $1 in
+# get pre-requisites
+prereqs)
+ prereqs
+ exit 0
+ ;;
+esac
+
+. /scripts/casper-functions
+
+log_begin_msg "$DESCRIPTION"
+
+#Trinity
+if [ -d "/root/etc/trinity" ]; then
+ if [ -f "/root/usr/share/applications/ubiquity-gtkui.desktop" ]; then
+ sed -i 's/\(OnlyShowIn=.*\)/\1KDE;TDE;/' "/root/usr/share/applications/ubiquity-gtkui.desktop"
+ fi
+ if [ -f "/root/home/$USERNAME/Desktop/ubiquity-gtkui.desktop" ]; then
+ sed -i 's/\(OnlyShowIn=.*\)/\1KDE;TDE;/' "/root/home/$USERNAME/Desktop/ubiquity-gtkui.desktop"
+ fi
+fi
+
+log_end_msg