summaryrefslogtreecommitdiffstats
path: root/ubuntu/precise/metapackages/casper-trinity/scripts/casper-bottom/25adduser-trinity
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-01-06 20:46:55 +0100
committerSlávek Banko <slavek.banko@axis.cz>2013-01-06 20:50:20 +0100
commit2e67ccecd7891b97b21d3ecfdf0753bf77888d3c (patch)
treeb0f1f1904735aa6297a98a919ac4ae7d49bf833f /ubuntu/precise/metapackages/casper-trinity/scripts/casper-bottom/25adduser-trinity
parentd2f32337f00cf98faef8475e769d9c0381efd257 (diff)
downloadtde-packaging-2e67ccecd7891b97b21d3ecfdf0753bf77888d3c.tar.gz
tde-packaging-2e67ccecd7891b97b21d3ecfdf0753bf77888d3c.zip
Added metapackages trinity-livecd, casper-trinity and ubiquity-trinity on Ubuntu
Diffstat (limited to 'ubuntu/precise/metapackages/casper-trinity/scripts/casper-bottom/25adduser-trinity')
-rwxr-xr-xubuntu/precise/metapackages/casper-trinity/scripts/casper-bottom/25adduser-trinity33
1 files changed, 33 insertions, 0 deletions
diff --git a/ubuntu/precise/metapackages/casper-trinity/scripts/casper-bottom/25adduser-trinity b/ubuntu/precise/metapackages/casper-trinity/scripts/casper-bottom/25adduser-trinity
new file mode 100755
index 000000000..bd764edcc
--- /dev/null
+++ b/ubuntu/precise/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