123456789101112131415161718192021 |
- #!/bin/sh
- encryptionmenu2() {
- options=" /dev/sda1\n /dev/sdb1\n /dev/sdc1\n /dev/sdd1\n /dev/sde1"
- selected=$(echo "$options" | dmenu -i -p "Encrypt which drive?" )
- if [ "$selected" = " /dev/sda1" ]; then
- $TERMINAL sh -c 'doas cryptsetup open /dev/sda1 usb && doas mount /dev/mapper/usb /mnt; exec zsh'
- elif [ "$selected" = " /dev/sdb1" ]; then
- $TERMINAL sh -c 'doas cryptsetup open /dev/sdb1 usb && doas mount /dev/mapper/usb /mnt; exec zsh'
- elif [ "$selected" = " /dev/sdc1" ]; then
- $TERMINAL sh -c 'doas cryptsetup open /dev/sdc1 usb && doas mount /dev/mapper/usb /mnt; exec zsh'
- elif [ "$selected" = " /dev/sdd1" ]; then
- $TERMINAL sh -c 'doas cryptsetup open /dev/sdd1 usb && doas mount /dev/mapper/usb /mnt; exec zsh'
- elif [ "$selected" = " /dev/sde1" ]; then
- $TERMINAL sh -c 'doas cryptsetup open /dev/sdd1 usb && doas mount /dev/mapper/usb /mnt; exec zsh'
- return
- fi
- }
- encryptionmenu2
|