qubes.InstallUpdatesGUI 784 B

1234567891011121314151617
  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 ]; then
  6. xterm -title update -e su -l -c 'yum update; echo Done. Press Enter to exit.; read x'
  7. elif [ -e /etc/debian_version ]; then
  8. xterm -title update -e su -l -c 'apt-get update && apt-get -V dist-upgrade; echo Done. Press Enter to exit.; read x'
  9. elif [ -e /etc/arch-release ]; then
  10. xterm -title update -e su -l -c 'pacman -Suy; echo Done. Press Enter to exit.; read x'
  11. else
  12. xterm -title update -e su -l -c 'echo Unsupported distribution, install updates manually; bash -i'
  13. fi
  14. # Notify dom0 about installed updates
  15. su -c 'service qubes-update-check start'