#!/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