diff --git a/menus_functions_ub1804.sh b/menus_functions_ub1804.sh index 0666a7b..f7c9de9 100644 --- a/menus_functions_ub1804.sh +++ b/menus_functions_ub1804.sh @@ -122,9 +122,7 @@ function showSysToolsMenu () { "inxi" "System informations" \ "speedtest-cli" "Bandwidth test" \ "packetloss" "Packetloss test (ping)" \ - "OptimizeFirefox" "Firefox SQLite databases optimization" \ "Autoremove" "Remove useless Deb packages" \ - "CleanOldKernels" "Removing old kernels (keep 2 last kernels)" \ "SoundCardsDetection" "Sound Cards Detection" \ "Back" "Back" 3>&1 1>&2 2>&3) @@ -138,15 +136,9 @@ function showSysToolsMenu () { "packetloss") clear; toolPacketLoss; pressKey ;; - "OptimizeFirefox") - clear; toolOptimizeFirefox; pressKey - ;; "Autoremove") clear; toolAutoremove; pressKey ;; - "CleanOldKernels") - clear; toolClearOldKernels; pressKey - ;; "SoundCardsDetection") clear; toolSoundCardsDetection; pressKey ;; diff --git a/menus_functions_ub2004.sh b/menus_functions_ub2004.sh index de3ade1..62dbc2e 100644 --- a/menus_functions_ub2004.sh +++ b/menus_functions_ub2004.sh @@ -122,9 +122,7 @@ function showSysToolsMenu () { "inxi" "System informations" \ "speedtest-cli" "Bandwidth test" \ "packetloss" "Packetloss test (ping)" \ - "OptimizeFirefox" "Firefox SQLite databases optimization" \ "Autoremove" "Remove useless Deb packages" \ - "CleanOldKernels" "Removing old kernels (keep 2 last kernels)" \ "SoundCardsDetection" "Sound Cards Detection" \ "Back" "Back" 3>&1 1>&2 2>&3) @@ -138,15 +136,9 @@ function showSysToolsMenu () { "packetloss") clear; toolPacketLoss; pressKey ;; - "OptimizeFirefox") - clear; toolOptimizeFirefox; pressKey - ;; "Autoremove") clear; toolAutoremove; pressKey ;; - "CleanOldKernels") - clear; toolClearOldKernels; pressKey - ;; "SoundCardsDetection") clear; toolSoundCardsDetection; pressKey ;; diff --git a/tools_functions.sh b/tools_functions.sh index 1956bb5..20a46e6 100644 --- a/tools_functions.sh +++ b/tools_functions.sh @@ -101,26 +101,6 @@ function toolPacketLoss () { 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) # @@ -129,15 +109,6 @@ function toolAutoremove () { "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 #