# Just in case someone hits ctrl-alt-backspace, let's cleanup some thing here

# Copy back passwd, group, shadow and gshadow
for i in passwd group shadow gshadow; do
    test -e "/var/cache/ltsp/$i" && cp "/var/cache/ltsp/$i" "/etc/$i"
done
if boolean_is_true "$LOCAL_APPS"; then
    # Clean up cups config
    [ -r "/etc/cups/client.conf" ] && rm -f /etc/cups/client.conf
fi

# Created by remote apps
if [ -w "/usr/lib/mime/packages/ltsp" ]; then
    rm -f /usr/lib/mime/packages/ltsp
    update-mime
fi

