trb.sh: trim SSDs with zenity gui
This commit is contained in:
parent
51ff95afac
commit
a45dc7464f
13
trb.sh
Executable file
13
trb.sh
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
zenity --question --text "Do you want to trim?"
|
||||||
|
if [[ $? == 1 ]];then
|
||||||
|
exit
|
||||||
|
else
|
||||||
|
|
||||||
|
results=$(pkexec /sbin/fstrim -va)
|
||||||
|
notify-send "${results}"
|
||||||
|
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user