|
|
|
@ -13,6 +13,7 @@ init() {
|
|
|
|
|
[ -z "$NAME" ] && read -p "Hostname: " NAME
|
|
|
|
|
while [ -z "$PASSWD" ] || [ ! "$PASSWD" = "$CHECK" ]; do
|
|
|
|
|
read -sp "Root password: " PASSWD
|
|
|
|
|
echo
|
|
|
|
|
read -sp "Repeat: " CHECK
|
|
|
|
|
done
|
|
|
|
|
# Show some possible disks
|
|
|
|
@ -28,6 +29,7 @@ init() {
|
|
|
|
|
echo "DEVICEPARTS = $DEV$SUF"
|
|
|
|
|
read -p "Do you want to continue with these values (y/n): " cont
|
|
|
|
|
[ ! "$cont" = "y" ] && unset NAME PASSWD DEV && init
|
|
|
|
|
echo "Let's GOOOO"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# stop on error
|
|
|
|
|