You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
535 B
18 lines
535 B
#!/bin/bash
|
|
|
|
sleep 1
|
|
|
|
dialog --menu " " 20 80 10 \
|
|
recv_pc "Receive image for /dev/sda1 (partclone+lzop)" \
|
|
recv_sfd "Receive partition table for /dev/sdaa (sfdisk)" \
|
|
recv_dd "Receive MBR for /dev/sda (dd)" \
|
|
send_pc "Send /dev/sda1 image (partclone+lzop)" \
|
|
send_sfd "Send /dev/sda partition table (sfdisk)" \
|
|
send_dd "Send /dev/sda MBR (dd)" \
|
|
shell "Run root shell" \
|
|
reboot "Reboot system" \
|
|
2>/tmp/menu
|
|
|
|
if [ "$?" != "0" ]; then CHOICE="shell"; else CHOICE=$(cat /tmp/menu); fi
|
|
|
|
bash $(dirname "$0")/$CHOICE.sh
|
|
|