✨ Added btrfs snapshot command
This commit is contained in:
parent
5d5b1c16d3
commit
b7d56506f8
2 changed files with 23 additions and 7 deletions
|
@ -31,7 +31,11 @@ fake () {
|
|||
elif [ "$1" == "restart" ]; then _fake_manager_system_restart $@;
|
||||
elif [ "$1" == "enable" ]; then _fake_manager_system_enable $@;
|
||||
elif [ "$1" == "disable" ]; then _fake_manager_system_disable $@;
|
||||
|
||||
#--------[ Other System Functions ]--------#
|
||||
elif [ "$1" == "flush" ]; then _fake_utils_linux_flushcache $@;
|
||||
elif [ "$1" == "snapshots" ]; then _fake_utils_linux_snapshots $@;
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
12
src/fake-os/modules/utils/linux/fake_utils_linux_snapshots.sh
Executable file
12
src/fake-os/modules/utils/linux/fake_utils_linux_snapshots.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
|
||||
|
||||
#--------[ Show Snapshots ]--------#
|
||||
_fake_utils_linux_snapshots () {
|
||||
if [ "$(command -v snapper)" ]; then
|
||||
snapper list
|
||||
else
|
||||
_fake_layout_message "BTRFS Snapper: Not Installed"
|
||||
fi
|
||||
}
|
Loading…
Reference in a new issue