pxelinux_master_passwd="$(grep -i "^[[:space:]]*[#]*[[:space:]]*MENU MASTER PASSWD" /tftpboot/nbi_img/pxelinux.cfg/default | sed -e "s/^[[:space:]]*[#]*[[:space:]]*MENU MASTER PASSWD//g")"
if [ -n "$pxelinux_master_passwd" ]; then
  echo "Previously assigned password for pxelinux exists! Do you want to overwrite ?"
  echo "[y/N] "
  read overwrite_pxelinux_passwd
  case "$overwrite_pxelinux_passwd" in
     y|Y|[yY][eE][sS])
        echo "Overwrite the password, what the new passwd ?"
        ;;
     *)
        echo "We will use the old password."
        ;;
  esac
fi
