mirror of
https://github.com/Snigdha-OS/snigdhaos-pkgbuilds.git
synced 2025-09-20 19:45:00 +02:00
⚡️ perf: check necessary permission and files
This commit is contained in:
@@ -1,6 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if grep -qE 'subvol=@/.snapshots/[0-9]+/snapshot' /proc/cmdline; then
|
if [[ -f /proc/cmdline ]]; then
|
||||||
exit 0
|
if grep -qE 'subvol=@/.snapshots/[0-9]+/snapshot' /proc/cmdline; then
|
||||||
|
echo "Booting from a Btrfs snapshot."
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
echo "Not booting from a Btrfs snapshot."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "/proc/cmdline not found."
|
||||||
|
exit 2
|
||||||
fi
|
fi
|
||||||
exit 1
|
|
||||||
|
Reference in New Issue
Block a user