the stuff

heads-update 485B

123456789101112131415161718
  1. #!/bin/sh
  2. #
  3. # Copyright (c) 2016-2018 Ivan J. <parazyd@dyne.org>
  4. # See LICENSE file for copyright and license details.
  5. #
  6. # this script will update the rootfs when executed,
  7. # overwriting any existing changes
  8. #apt-get update && apt-get upgrade
  9. KEYRING=/usr/share/heads/heads-keyring.gpg
  10. git fetch --all && git reset --hard origin/master
  11. [ -f /var/lib/heads/update ] && {
  12. gpgv --keyring "$KEYRING" /var/lib/heads/update.asc /var/lib/heads/update || exit 1
  13. . /var/lib/heads/update
  14. }