archinstall/modules/postchroot/99-done.sh
2024-05-25 15:59:32 +02:00

17 lines
281 B
Bash

#!/bin/bash
#shellcheck disable=SC2154
BOLD=$'\e[1m'
GREEN=$'\e[32m'
NORMAL=$'\e[0m'
echo -e "${BOLD}${GREEN}DONE. Umount? [Y/n]${NORMAL} " && read -r ANS
case "$ANS" in
[Yy]*) ;;
*) exit ;;
esac
awk '/mnt/ {print $1}' < /proc/swaps | xargs swapoff
umount -R /mnt/