Skip to content

A hardened Linux desktop, rebuilt from scratch, with your Windows apps built in. Free and open source.

1.2 KB
Raw Blame
#!/bin/sh
set -e
# Up to 0.1.3 this package was Write and Tables together. They are now
# wildos-write and wildos-tables, so each can be removed on its own, and an
# update brings in neither by itself. A PC updating from before the split
# gets both a minute after dpkg has finished, or at the next start if that
# fails.
if [ "$1" = configure ] && [ -n "${2:-}" ] && dpkg --compare-versions "$2" lt 0.1.4~; then
    mkdir -p /var/lib/wildos
    touch /var/lib/wildos/office-split
    if [ -d /run/systemd/system ]; then
        systemd-run --quiet --on-active=60 --unit=wildos-office-split-soon \
            systemctl start --no-block wildos-office-split.service || true
    fi
fi
# Slides came with 0.1.6. A PC that already had Write and Tables gets it
# once, the same way; removed afterwards, it stays removed.
if [ "$1" = configure ] && [ -n "${2:-}" ] && dpkg --compare-versions "$2" lt 0.1.6~; then
    mkdir -p /var/lib/wildos
    touch /var/lib/wildos/office-slides
    if [ -d /run/systemd/system ]; then
        systemd-run --quiet --on-active=90 --unit=wildos-office-slides-soon \
            systemctl start --no-block wildos-office-slides.service || true
    fi
fi
#DEBHELPER#
exit 0