summaryrefslogtreecommitdiffstats
path: root/root
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-01-23 19:37:53 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2023-01-23 19:37:53 +0100
commit5515b3b488c1dc9b53752419f895ccc85f70788a (patch)
tree22bea78d1ff97143c368f6a9d3ba9caaa30d6a26 /root
parentportage very idle (diff)
downloadn-5515b3b488c1dc9b53752419f895ccc85f70788a.tar
n-5515b3b488c1dc9b53752419f895ccc85f70788a.tar.gz
n-5515b3b488c1dc9b53752419f895ccc85f70788a.tar.bz2
n-5515b3b488c1dc9b53752419f895ccc85f70788a.tar.lz
n-5515b3b488c1dc9b53752419f895ccc85f70788a.tar.xz
n-5515b3b488c1dc9b53752419f895ccc85f70788a.tar.zst
n-5515b3b488c1dc9b53752419f895ccc85f70788a.zip
Diffstat (limited to '')
-rwxr-xr-xroot/posodobi.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/root/posodobi.sh b/root/posodobi.sh
new file mode 100755
index 0000000..3d0cdf6
--- /dev/null
+++ b/root/posodobi.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+set -e
+f=
+grep "--no-sync" <<<"@$" || emaint sync --auto
+grep "--no-ask" <<<"@$" || f=--ask
+emerge --verbose --update $f --newuse --changed-use --backtrack 30 --deep @world
+emerge @preserved-rebuild
+emerge --depclean