15 lines
276 B
Bash
Executable File
15 lines
276 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo -n "~> Do you want to create an user account? (Y/n) "
|
|
read answer
|
|
|
|
if [ "$answer" == "n" ] || [ "$answer" == "N" ]; then
|
|
exit 0
|
|
else
|
|
echo -n " Name of your new user? "
|
|
read name
|
|
arch-chroot /mnt useradd -m $name
|
|
arch-chroot /mnt passwd $name
|
|
exit 0
|
|
fi
|