~ochosi/xubuntu-default-settings/drop_jockeydesktop

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

PREREQ=""
DESCRIPTION="Preparing for maybe-ubiquity mode..."

. /scripts/casper-functions

prereqs()
{
       echo "$PREREQ"
}

case $1 in
# get pre-requisites
prereqs)
       prereqs
       exit 0
       ;;
esac

log_begin_msg "$DESCRIPTION"

#should cover both maybe-ubiquity and only-ubiquity and automatic-ubiquity modes
if grep "ubiquity" /proc/cmdline >/dev/null; then
    mkdir -p /root/home/$USERNAME/.config
    cp -R /root/etc/xdg/xdg-xubuntu/xfce4  /root/home/$USERNAME/.config
    chroot /root chown -R $USERNAME:$USERNAME /home/$USERNAME/.config
fi

log_end_msg