~xubuntu-dev/xubuntu-default-settings/trunk

« back to all changes in this revision

Viewing changes to casper/48xubuntu_maybe_ubiquity

  • Committer: Lionel Le Folgoc
  • Date: 2011-11-19 19:05:13 UTC
  • Revision ID: mrpouit@ubuntu.com-20111119190513-z9jdbu8vvtt9d6py
* Fix broken theme in only-ubiquity mode (lp: #840094):
  - debian/control: add a new xubuntu-live-settings binary package.
  - debian/{gconf-defaults,post*,pre*}: renamed to
    debian/xubuntu-default-settings.*.
  - debian/*.install: added, now that we have several binary packages.
  - casper/48xubuntu_maybe_ubiquity: added, stolen from
    mythbuntu-live-autostart.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
PREREQ=""
 
4
DESCRIPTION="Preparing for maybe-ubiquity mode..."
 
5
 
 
6
. /scripts/casper-functions
 
7
 
 
8
prereqs()
 
9
{
 
10
       echo "$PREREQ"
 
11
}
 
12
 
 
13
case $1 in
 
14
# get pre-requisites
 
15
prereqs)
 
16
       prereqs
 
17
       exit 0
 
18
       ;;
 
19
esac
 
20
 
 
21
log_begin_msg "$DESCRIPTION"
 
22
 
 
23
#should cover both maybe-ubiquity and only-ubiquity and automatic-ubiquity modes
 
24
if grep "ubiquity" /proc/cmdline >/dev/null; then
 
25
    mkdir -p /root/home/$USERNAME/.config
 
26
    cp -R /root/etc/xdg/xdg-xubuntu/xfce4  /root/home/$USERNAME/.config
 
27
    chroot /root chown -R $USERNAME:$USERNAME /home/$USERNAME/.config
 
28
fi
 
29
 
 
30
log_end_msg