|
|
@ -80,14 +80,27 @@ echo "127.0.1.1 ${HOSTNAME}.localdomain ${HOSTNAME}" >> /etc/hosts
|
|
|
|
|
|
|
|
|
|
|
|
clear
|
|
|
|
clear
|
|
|
|
inf "Password for root"
|
|
|
|
inf "Password for root"
|
|
|
|
|
|
|
|
done="nope"
|
|
|
|
|
|
|
|
while [[ "$done" == "nope" ]]; do
|
|
|
|
passwd
|
|
|
|
passwd
|
|
|
|
|
|
|
|
if [[ "$(echo $?)" == "0" ]]; then
|
|
|
|
|
|
|
|
done="yep"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
prompt "Your username"
|
|
|
|
prompt "Your username"
|
|
|
|
UN="$response"
|
|
|
|
UN="$response"
|
|
|
|
useradd -m ${UN}
|
|
|
|
useradd -m ${UN}
|
|
|
|
usermod -aG wheel ${UN}
|
|
|
|
usermod -aG wheel ${UN}
|
|
|
|
inf "Set password for ${UN}"
|
|
|
|
inf "Set password for ${UN}"
|
|
|
|
|
|
|
|
done="nope"
|
|
|
|
|
|
|
|
while [[ "$done" == "nope" ]]; do
|
|
|
|
passwd ${UN}
|
|
|
|
passwd ${UN}
|
|
|
|
|
|
|
|
if [[ "$(echo $?)" == "0" ]]; then
|
|
|
|
|
|
|
|
done="yep"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
echo >> /etc/sudoers
|
|
|
|
echo >> /etc/sudoers
|
|
|
|
echo "# Enabled by Crystalinstall" >> /etc/sudoers
|
|
|
|
echo "# Enabled by Crystalinstall" >> /etc/sudoers
|
|
|
|
echo "%wheel ALL=(ALL) ALL" >> /etc/sudoers
|
|
|
|
echo "%wheel ALL=(ALL) ALL" >> /etc/sudoers
|
|
|
|