#!/bin/sh # I do stuff if [ ! -z $DISPLAY ]; then synaptic --hide-main-window --non-interactive --set-selections-file /usr/share/lliurex-zero-installers/zero-salt-files else apt-get update apt-get install salt -y --force-yes fi # Added salt if [ -f /usr/share/salt-libreoffice-addons/saltutil.oxt ]; then # Removing package if exists su $USER -c "unopkg remove org.openoffice.Office.addon.salt.trad" || true su $USER -c "unopkg remove org.openoffice.Office.addon.salt.util" || true # Now install it su $USER -c "unopkg add -v /usr/share/salt-libreoffice-addons/saltutil.oxt" || true su $USER -c "unopkg add -v /usr/share/salt-libreoffice-addons/salttrad.oxt" || true zero-center set-configured zero-salt fi exit 0