miamondo

post_install_arch

Nov 23rd, 2021 (edited)
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.27 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # Copyright © 2019 Benoît Boud@ud <https://miamondo.org>
  4. # This program is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation, either version 3 of the License, or
  7. # any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program.  If not, see <http://www.gnu.org/licenses/>
  16.  
  17. # Prerequisite : wget and unzip must be installed
  18.  
  19. # TITRE
  20. clear
  21. echo "Programme de post-installation"
  22. sleep 2
  23.  
  24. # 1. DISPOSITION DES TOUCHES DU CLAVIER
  25. #echo "Disposition des touches du clavier."
  26. #echo "(fr pour français, de pour allemand, en pour anglais): "
  27. #read keyboard
  28. #loadkeys $keyboard
  29.  
  30. # 2. MODE DE DÉMARRAGE
  31. echo "Vérification du mode de démarrage."
  32. ls /sys/firmware/efi/efivars
  33. if [[ $? -eq 0 ]]
  34. then
  35.     mode="UEFI" # Si pas d'erreur, le mode est UEFI
  36. else
  37.     mode="BIOS" # Si erreur, le mode est BIOS
  38. echo $mode
  39. echo "Votre mode de démarrage est $mode."
Add Comment
Please, Sign In to add comment