5 tempfile=`mktemp 2> /dev/null` || tempfile=/tmp/test$$
6 trap "rm -f $tempfile" 0 1 2 5 15
10 test -L /sys/block/$(ls /sys/block | head -n 1) && \
11 find /sys/devices -path "*/block/*" \( -name "sd[a-z]*" -o -name "ub[a-z]*" \) || \
12 find /sys/block \( -name "sd[a-z]*" -o -name "ub[a-z]*" \)
19 [ -f $DEV/dev ] || continue
20 echo "/dev/${DEV##*/}"
24 $DIALOG --backtitle "Configuring system settings" \
26 --menu "Install boot loader on device" 20 61 15 \
27 `lsblk | sort | sed "s/.*/& </"` 2> $tempfile
31 choice=`cat $tempfile`
34 [ ! -z "$choice" ] && grub-install $choice