#!/bin/sh

#set -e

Init ()
{
	# Checking if package is installed or already configured
	if [ ! -e /etc/xdg/pointlinux-xfce/xfce4/panel/default.xml ]
	then
		exit 0
	fi

	echo -n " pointlinux-xfce-panel"
}

Config ()
{
	if [ -e /home/"${LIVE_USERNAME}"/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml ]
	then
		sudo -u "${LIVE_USERNAME}" cp -f /etc/xdg/pointlinux-xfce/xfce4/panel/default.xml /home/"${LIVE_USERNAME}"/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml
	fi

	# Creating state file
	touch /var/lib/live/config/pointlinux-xfce-panel
}

Init
Config
