qubes.InstallUpdatesGUI 957 B

12345678910111213141516171819
  1. #!/bin/sh
  2. # This script should open some GUI to install updates.
  3. # If you are creating package for other distribution, feel free to replace it
  4. # with distribution-specific script.
  5. if [ -e /etc/redhat-release -a -x /usr/bin/dnf ]; then
  6. xterm -title update -e su -l -c 'dnf update --best; echo Done. Press Enter to exit.; read x'
  7. elif [ -e /etc/redhat-release -a -x /usr/bin/yum ]; then
  8. xterm -title update -e su -l -c 'yum update; echo Done. Press Enter to exit.; read x'
  9. elif [ -e /etc/debian_version ]; then
  10. xterm -title update -e su -l -c 'apt-get update && apt-get -V dist-upgrade; echo Done. Press Enter to exit.; read x'
  11. elif [ -e /etc/arch-release ]; then
  12. xterm -title update -e su -l -c 'pacman -Suy; echo Done. Press Enter to exit.; read x'
  13. else
  14. xterm -title update -e su -l -c 'echo Unsupported distribution, install updates manually; bash -i'
  15. fi
  16. # Notify dom0 about installed updates
  17. su -c 'service qubes-update-check start'