This commit is contained in:
teldra 2022-02-13 09:59:26 +01:00
parent d48eaaa173
commit 56413c15e5
1 changed files with 10 additions and 2 deletions

View File

@ -45,15 +45,23 @@ multiplechoice() {
done
}
echo "Bitte Backupgerät noch nicht anschliessen!"
clear
echo "Bitte Backupgerät noch nicht anschliessen oder wieder entfernen!"
echo "Dücke Enter"
read
DISKS_DETAILS=$(lsblk -l -o KNAME,TYPE,SIZE,MODEL|grep disk)
echo "${DISKS_DETAILS}"
echo ""
echo "Nun das Gerät anschliessen und das neue in der Liste auswaehlen"
echo "Nun das Gerät anschliessen"
echo "Vergleiche diese Ausgabe mit der folgenden"
echo "Drücke Enter"
read
DISKS_DETAILS=$(lsblk -l -o KNAME,TYPE,SIZE,MODEL|grep disk)
echo "${DISKS_DETAILS}"
echo ""
echo "Welches kam neu hinzu?"
DIFF=$(diff <(echo "$a") <(echo "$b")|tail -n-1|awk '{print $2}')
echo "Vermutlich '${DIFF}'"
multiplechoice $(echo "${DISKS_DETAILS}"|awk '{print $1}')
TARGET_PHY_DISK="${output}"