remove stty

This commit is contained in:
lelgenio 2019-12-26 13:25:34 -03:00
parent 2eb52230de
commit b01b51a0ec
1 changed files with 5 additions and 11 deletions

View File

@ -193,9 +193,7 @@ setup() {
if [ -z "$DRIVE_PASSPHRASE" ] if [ -z "$DRIVE_PASSPHRASE" ]
then then
echo 'Enter a passphrase to encrypt the disk:' echo 'Enter a passphrase to encrypt the disk:'
stty -echo read -s DRIVE_PASSPHRASE
read DRIVE_PASSPHRASE
stty echo
fi fi
echo 'Encrypting partition' echo 'Encrypting partition'
@ -342,12 +340,12 @@ install_base() {
pacstrap /mnt $pkgs_base pacstrap /mnt $pkgs_base
} }
#}}} #}}}
# set_fstab() {#{{{ # Set fstab {{{
set_fstab() { set_fstab() {
genfstab -Up /mnt > /mnt/etc/fstab genfstab -Up /mnt > /mnt/etc/fstab
} }
#}}} #}}}
# unmount_filesystems #{{{ # Unmount filesystems #{{{
unmount_filesystems() { unmount_filesystems() {
umount -R /mnt umount -R /mnt
swapoff /dev/vg00/swap swapoff /dev/vg00/swap
@ -409,9 +407,7 @@ configure() {
if [ -z "$ROOT_PASSWORD" ] if [ -z "$ROOT_PASSWORD" ]
then then
echo 'Enter the root password:' echo 'Enter the root password:'
stty -echo read -s ROOT_PASSWORD
read ROOT_PASSWORD
stty echo
fi fi
echo 'Setting root password' echo 'Setting root password'
@ -420,9 +416,7 @@ configure() {
if [ -z "$USER_PASSWORD" ] if [ -z "$USER_PASSWORD" ]
then then
echo "Enter the password for user $USER_NAME" echo "Enter the password for user $USER_NAME"
stty -echo read -s USER_PASSWORD
read USER_PASSWORD
stty echo
fi fi
echo 'Creating initial user' echo 'Creating initial user'