2 old tool removed
This commit is contained in:
parent
46898d7ec8
commit
ed7ed50f38
3 changed files with 0 additions and 45 deletions
|
@ -122,9 +122,7 @@ function showSysToolsMenu () {
|
||||||
"inxi" "System informations" \
|
"inxi" "System informations" \
|
||||||
"speedtest-cli" "Bandwidth test" \
|
"speedtest-cli" "Bandwidth test" \
|
||||||
"packetloss" "Packetloss test (ping)" \
|
"packetloss" "Packetloss test (ping)" \
|
||||||
"OptimizeFirefox" "Firefox SQLite databases optimization" \
|
|
||||||
"Autoremove" "Remove useless Deb packages" \
|
"Autoremove" "Remove useless Deb packages" \
|
||||||
"CleanOldKernels" "Removing old kernels (keep 2 last kernels)" \
|
|
||||||
"SoundCardsDetection" "Sound Cards Detection" \
|
"SoundCardsDetection" "Sound Cards Detection" \
|
||||||
"Back" "Back" 3>&1 1>&2 2>&3)
|
"Back" "Back" 3>&1 1>&2 2>&3)
|
||||||
|
|
||||||
|
@ -138,15 +136,9 @@ function showSysToolsMenu () {
|
||||||
"packetloss")
|
"packetloss")
|
||||||
clear; toolPacketLoss; pressKey
|
clear; toolPacketLoss; pressKey
|
||||||
;;
|
;;
|
||||||
"OptimizeFirefox")
|
|
||||||
clear; toolOptimizeFirefox; pressKey
|
|
||||||
;;
|
|
||||||
"Autoremove")
|
"Autoremove")
|
||||||
clear; toolAutoremove; pressKey
|
clear; toolAutoremove; pressKey
|
||||||
;;
|
;;
|
||||||
"CleanOldKernels")
|
|
||||||
clear; toolClearOldKernels; pressKey
|
|
||||||
;;
|
|
||||||
"SoundCardsDetection")
|
"SoundCardsDetection")
|
||||||
clear; toolSoundCardsDetection; pressKey
|
clear; toolSoundCardsDetection; pressKey
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -122,9 +122,7 @@ function showSysToolsMenu () {
|
||||||
"inxi" "System informations" \
|
"inxi" "System informations" \
|
||||||
"speedtest-cli" "Bandwidth test" \
|
"speedtest-cli" "Bandwidth test" \
|
||||||
"packetloss" "Packetloss test (ping)" \
|
"packetloss" "Packetloss test (ping)" \
|
||||||
"OptimizeFirefox" "Firefox SQLite databases optimization" \
|
|
||||||
"Autoremove" "Remove useless Deb packages" \
|
"Autoremove" "Remove useless Deb packages" \
|
||||||
"CleanOldKernels" "Removing old kernels (keep 2 last kernels)" \
|
|
||||||
"SoundCardsDetection" "Sound Cards Detection" \
|
"SoundCardsDetection" "Sound Cards Detection" \
|
||||||
"Back" "Back" 3>&1 1>&2 2>&3)
|
"Back" "Back" 3>&1 1>&2 2>&3)
|
||||||
|
|
||||||
|
@ -138,15 +136,9 @@ function showSysToolsMenu () {
|
||||||
"packetloss")
|
"packetloss")
|
||||||
clear; toolPacketLoss; pressKey
|
clear; toolPacketLoss; pressKey
|
||||||
;;
|
;;
|
||||||
"OptimizeFirefox")
|
|
||||||
clear; toolOptimizeFirefox; pressKey
|
|
||||||
;;
|
|
||||||
"Autoremove")
|
"Autoremove")
|
||||||
clear; toolAutoremove; pressKey
|
clear; toolAutoremove; pressKey
|
||||||
;;
|
;;
|
||||||
"CleanOldKernels")
|
|
||||||
clear; toolClearOldKernels; pressKey
|
|
||||||
;;
|
|
||||||
"SoundCardsDetection")
|
"SoundCardsDetection")
|
||||||
clear; toolSoundCardsDetection; pressKey
|
clear; toolSoundCardsDetection; pressKey
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -101,26 +101,6 @@ function toolPacketLoss () {
|
||||||
ping -q -c 10 google.com
|
ping -q -c 10 google.com
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
|
||||||
# Optimization of SQLite databases of Firefox and Firefox Nightly
|
|
||||||
#
|
|
||||||
function toolOptimizeFirefox () {
|
|
||||||
if (whiptail --title "Firefox SQLite DB Optimization" --yesno "Terminate Firefox and proceed ?" 10 60) then
|
|
||||||
if which firefox >/dev/null; then
|
|
||||||
printf "Optimizing Firefox"
|
|
||||||
pkill -9 firefox
|
|
||||||
for f in ~/.mozilla/firefox/*/*.sqlite; do sqlite3 $f 'VACUUM; REINDEX;'; done
|
|
||||||
printf "\n"
|
|
||||||
fi
|
|
||||||
if which firefox-trunk >/dev/null; then
|
|
||||||
printf "Optimizing Firefox Nightly"
|
|
||||||
pkill -9 firefox-trunk
|
|
||||||
for f in ~/.mozilla/firefox-trunk/*/*.sqlite; do sqlite3 $f 'VACUUM; REINDEX;'; done
|
|
||||||
printf "\n"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# remove useless packages (depedencies)
|
# remove useless packages (depedencies)
|
||||||
#
|
#
|
||||||
|
@ -129,15 +109,6 @@ function toolAutoremove () {
|
||||||
"removing not necessary dependencies"
|
"removing not necessary dependencies"
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
|
||||||
# remove old versions of installed kernels
|
|
||||||
#
|
|
||||||
function toolClearOldKernels () {
|
|
||||||
checkAndInstallDep apt ukuu ukuu \
|
|
||||||
&& runCmd "sudo ukuu --purge-old-kernels --yes" \
|
|
||||||
"removing old kernels"
|
|
||||||
}
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# force soundcards detection
|
# force soundcards detection
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue