Compare commits
5 commits
f04eb7b0ae
...
44fc037d6c
Author | SHA1 | Date | |
---|---|---|---|
Dmitry Voronin | 44fc037d6c | ||
Dmitry Voronin | f20e5348ca | ||
Dmitry Voronin | 8981fc9e25 | ||
Dmitry Voronin | 7e8d23496b | ||
Dmitry Voronin | 4b293ac1e9 |
|
@ -12,6 +12,7 @@
|
|||
gdu
|
||||
gnumake
|
||||
gnused
|
||||
gparted
|
||||
imagemagick
|
||||
jdk jdk11 jdk19 jdk20
|
||||
jq
|
||||
|
|
|
@ -11,5 +11,21 @@
|
|||
function tdu() {
|
||||
du -sh --si "''${@}"
|
||||
}
|
||||
|
||||
# Unlock encrypted disk file.
|
||||
# Usage: unlock <FILE>
|
||||
function unlock() {
|
||||
_filter() {
|
||||
sed -e "s/.*\ a[st]\ //" -e "s/\.$//"
|
||||
}
|
||||
local file="''${1}"
|
||||
local name=$(parse_alnum ''${file} | _filter)
|
||||
local loop=$(udisksctl loop-setup -f "''${file}" | _filter)
|
||||
local unlock=$(udisksctl unlock -b "''${loop}" | _filter)
|
||||
local mount=$(udisksctl mount -b "''${unlock}" | _filter)
|
||||
|
||||
[ -L "./''${name}" ] || ln -s "''${mount}" "./''${name}"
|
||||
cd "''${mount}"
|
||||
}
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
done
|
||||
|
||||
_info "Uploading..."
|
||||
try sudo rcp "''${files[@]}" home:/storage/cold_1/backup/save/
|
||||
try trysudo rcp "''${files[@]}" home:/storage/cold_1/backup/save/
|
||||
|
||||
_info "Cleaning..."
|
||||
archive_prune 2> /dev/null
|
||||
|
|
|
@ -54,6 +54,6 @@
|
|||
|
||||
top.refresh = "2000";
|
||||
|
||||
brightness.step = "10";
|
||||
brightness.step = "5";
|
||||
volume.step = "5";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue