mirror of
https://github.com/femtofox/femtofox.git
synced 2026-10-26 19:02:00 -04:00
commit
5960db42ee
3 changed files with 5 additions and 10 deletions
|
|
@ -1 +1,3 @@
|
|||
0.95.5a
|
||||
major=0
|
||||
minor=95
|
||||
patch=5
|
||||
|
|
@ -29,7 +29,7 @@ if [ -z "$DISTRIB_DESCRIPTION" ] && [ -x /usr/bin/lsb_release ]; then
|
|||
fi
|
||||
|
||||
[ -r /etc/lsb-release ] && . /etc/lsb-release
|
||||
foxbuntu_version=$(cat /etc/foxbuntu-release)
|
||||
foxbuntu_version=$(grep -oP 'major=\K[0-9]+' /etc/foxbuntu-release).$(grep -oP 'minor=\K[0-9]+' /etc/foxbuntu-release).$(grep -oP 'patch=\K[0-9]+' /etc/foxbuntu-release)
|
||||
spaces=$((9 - ${#foxbuntu_version}))
|
||||
|
||||
# Print the result with the appropriate number of spaces
|
||||
|
|
|
|||
|
|
@ -13,17 +13,12 @@ dmesg -C
|
|||
rm ~/.bash_history
|
||||
history -c && history -w
|
||||
|
||||
# Clear Shell History
|
||||
rm ~/.bash_history
|
||||
history -c && history -w
|
||||
|
||||
# Clear Temporary Files
|
||||
rm -rf /tmp/*
|
||||
rm -rf /var/tmp/*
|
||||
|
||||
# Stop BBS service and clear log
|
||||
systemctl stop mesh-bbs.service
|
||||
rm bbs.log
|
||||
|
||||
# Clear Package Cache
|
||||
apt-get -y autoremove
|
||||
|
|
@ -81,12 +76,10 @@ echo "------- Delete dummy file -------"
|
|||
rm -f ~/delete_me
|
||||
sync
|
||||
sync
|
||||
fstrim -v /
|
||||
echo "-------Finish zeroing at $(date)-------"
|
||||
echo ""
|
||||
|
||||
# Trim filesystem
|
||||
fstrim -v /
|
||||
|
||||
# Clear dmesg Log
|
||||
dmesg -C
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue