mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-23 00:00:02 +03:00
26 lines
306 B
Plaintext
26 lines
306 B
Plaintext
|
#!/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
|