diff options
author | Slávek Banko <[email protected]> | 2014-01-15 20:07:03 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2014-01-15 20:07:15 +0100 |
commit | e6d7e8e6936e70e1d6a7d1f5df5171280befbfd1 (patch) | |
tree | e4df23e3e314e60f112b3e6360f4a89c37ea8e23 /ubuntu/precise/metapackages/casper-trinity/debian/distrospecific/scripts/casper-bottom/25adduser-trinity | |
parent | 68a2f23896b2dfd53c80fff69f3663b76b1b73e0 (diff) | |
download | tde-packaging-e6d7e8e6936e70e1d6a7d1f5df5171280befbfd1.tar.gz tde-packaging-e6d7e8e6936e70e1d6a7d1f5df5171280befbfd1.zip |
Update remaining metapackages on Debian and Ubuntu
to conform the current automated scripts on build-farm
Diffstat (limited to 'ubuntu/precise/metapackages/casper-trinity/debian/distrospecific/scripts/casper-bottom/25adduser-trinity')
-rwxr-xr-x | ubuntu/precise/metapackages/casper-trinity/debian/distrospecific/scripts/casper-bottom/25adduser-trinity | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/ubuntu/precise/metapackages/casper-trinity/debian/distrospecific/scripts/casper-bottom/25adduser-trinity b/ubuntu/precise/metapackages/casper-trinity/debian/distrospecific/scripts/casper-bottom/25adduser-trinity new file mode 100755 index 000000000..bd764edcc --- /dev/null +++ b/ubuntu/precise/metapackages/casper-trinity/debian/distrospecific/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 |