Skip to content

Commit dc8b578

Browse files
authored
Update Clean.sh
1 parent d66f68a commit dc8b578

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Cachyos/Clean.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ read -r used_human pct < <(df -h --output=used,pcent -- / 2>/dev/null | awk 'NR=
5454
DUB="$used_human $pct"
5555
SPACE="$(sudo du -sh / 2>/dev/null | cut -f1)"
5656

57+
sudo modprobed-db store
58+
if [[ -f ~/.config//modprobed.db ]]; then
59+
sort -u ~/.local/share/modprobed.db -o ~/.local/share/modprobed.db
60+
fi
61+
if [[ -f ~/.local/share/modprobed.db ]]; then
62+
sort -u ~/.local/share/modprobed.db -o ~/.local/share/modprobed.db
63+
fi
64+
5765
# Clearing dns cache and release/renew dhcp
5866
has dhclient && dhclient -r
5967
sudo resolvectl flush-caches >/dev/null

0 commit comments

Comments
 (0)