#!/bin/bash

# Prompt for password
PASSWORD=$(zenity --entry \
    --title="Unlock Encrypted ZFS Dataset" \
    --text="Please enter the password to unlock and mount the encrypted ZFS dataset" \
    --hide-text)

# Check if password is not empty
if [ -z "$PASSWORD" ]
then
    zenity --error \
        --title="Error" \
        --text="No password entered. Aborting..."
    exit 1
fi

# Unlock and mount the encrypted ZFS dataset
zfs unlock -p "$PASSWORD" rpool/encrypted
zfs mount rpool/encrypted
#!/bin/bash # พร้อมท์ให้ใส่รหัสผ่าน PASSWORD=$(zenity --entry \ --title="Unlock Encrypted ZFS Dataset" \ --text="Please enter thepass to unlock and mount the encrypted dataset" \ - -hide-text) # ตรวจสอบว่ารหัสผ่านไม่ว่างเปล่าหาก [ -z "$PASSWORD" ] แล้ว zenity --error \ --title="Error" \ --text="Nopassword enter. Aborting..." exit 1 fi # ปลดล็อกและเมานต์ชุดข้อมูล ZFS ที่เข้ารหัส zfs Unlock -p "$PASSWORD" rpool/encrypted zfs mount rpool/encrypted
spam lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor creativity violence