cedr-install.sh 778 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. # cedr - the ChromeOS Enrolled Desktop Runtime
  3. # Licensed under the MIT License (https://github.com/rainestorme/cedr/blob/main/LICENSE)
  4. # Get the passed parameters
  5. desktop=$1
  6. pushd /home/chronos/usbdrv || exit
  7. # Download crouton
  8. curl https://codeload.github.com/rainestorme/crouton/tar.gz/refs/tags/downloadlink-cedr -o crouton.tar.gz
  9. tar -xvf crouton.tar.gz
  10. mv crouton-downloadlink crouton
  11. rm crouton.tar.gz
  12. cd crouton || exit
  13. # Add host-bin to $PATH
  14. export PATH="/home/chronos/usbdrv/crouton/host-bin:$PATH"
  15. # Install crouton installer
  16. curl https://raw.githubusercontent.com/dnschneid/crouton/master/installer/crouton -o crouton
  17. chmod +x crouton
  18. # Install chroot
  19. ./crouton -t "$desktop",gtk-extra,cli-extra,extension,keyboard,xbmc,chrome -p ./
  20. popd || exit