2017-08-06 15:38:48 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2017-08-10 15:03:32 +00:00
|
|
|
echo "~> Changing password for root account."
|
|
|
|
arch-chroot /mnt passwd root
|
|
|
|
|
2017-08-06 15:38:48 +00:00
|
|
|
echo -n "~> Do you want to create an user account? (Y/n) "
|
|
|
|
read answer
|
|
|
|
|
2017-08-07 16:02:57 +00:00
|
|
|
if [ "$answer" == "n" ] || [ "$answer" == "N" ]; then
|
2017-08-31 14:27:55 +00:00
|
|
|
amf_return=0
|
2017-08-06 15:38:48 +00:00
|
|
|
else
|
2017-08-07 14:25:59 +00:00
|
|
|
echo -n " Name of your new user? "
|
2017-08-06 15:38:48 +00:00
|
|
|
read name
|
2017-08-07 16:16:05 +00:00
|
|
|
export username=$name
|
2017-08-06 15:38:48 +00:00
|
|
|
arch-chroot /mnt useradd -m $name
|
2017-08-07 14:25:59 +00:00
|
|
|
arch-chroot /mnt passwd $name
|
2017-08-31 14:27:55 +00:00
|
|
|
amf_return=0
|
2017-08-06 15:38:48 +00:00
|
|
|
fi
|