mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-13 00:00:04 +03:00
26 lines
306 B
Bash
Executable File
26 lines
306 B
Bash
Executable File
#!/bin/sh
|
|
|
|
PREREQ=""
|
|
|
|
prereqs()
|
|
{
|
|
echo "$PREREQ"
|
|
}
|
|
|
|
case $1 in
|
|
# get pre-requisites
|
|
prereqs)
|
|
prereqs
|
|
exit 0
|
|
;;
|
|
esac
|
|
|
|
# Check if it needs unlocking:
|
|
if bcachefs unlock -c $ROOT >/dev/null 2>&1; then
|
|
echo "Unlocking $ROOT:"
|
|
|
|
while true; do
|
|
bcachefs unlock $ROOT && break
|
|
done
|
|
fi
|