File tree Expand file tree Collapse file tree
usr/share/bigbashview/bcc/apps/drivers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,6 +43,20 @@ if [ "$VIDEO_DRIVER_ENABLED" = "true" ]; then
4343 dotcolor=" green"
4444 fi
4545
46+ elif [ " $VIDEO_DRIVER_ENABLED " = " obsolete" ]; then
47+ DRIVER_ENABLE_OR_DISABLE=$" Obsoleto, Clique para Remover!"
48+ INSTALL_OR_REMOVE_KERNEL=" remove_kernel_now"
49+
50+ if [ " $Kernel_version " = " $current " ]; then
51+ DISABLED_BUTTON=" disabled"
52+ DRIVER_ENABLE_OR_DISABLE=$" Em uso"
53+ dotcolor=" red"
54+ else
55+ DISABLED_BUTTON=" remove-button"
56+ DISABLED_MESSAGE=" "
57+ dotcolor=" red"
58+ fi
59+
4660else
4761 DRIVER_ENABLE_OR_DISABLE=$" Instalar"
4862 INSTALL_OR_REMOVE_KERNEL=" install_kernel_now"
@@ -105,6 +119,17 @@ for i in $VIDEO_DRIVER_SHOW_ALL_AND_IF_IS_FREE; do
105119SHOW_DRIVER " $Kernel_version " " $VIDEO_DRIVER_ENABLED " " $VIDEO_DRIVER_COMPATIBLE " " $VIDEO_DRIVER_OPEN " &
106120done
107121
122+
123+ OBSOLETE_KERNEL_INSTALLED=" $( echo " $VIDEO_DRIVER_ENABLED_LIST " | grep -v -f <( echo " $VIDEO_DRIVER_SHOW_ALL_AND_IF_IS_FREE " ) ) "
124+ for i in $OBSOLETE_KERNEL_INSTALLED ; do
125+ Kernel_version=" $( echo " $i " | cut -f1 -d" " ) "
126+ VIDEO_DRIVER_OPEN=" $( echo " $i " | cut -f2 -d" " ) "
127+ VIDEO_DRIVER_ENABLED=" obsolete"
128+ SHOW_DRIVER " $Kernel_version " " $VIDEO_DRIVER_ENABLED " " $VIDEO_DRIVER_COMPATIBLE " " $VIDEO_DRIVER_OPEN " &
129+ done
130+
131+
132+
108133wait
109134
110135IFS=$OIFS
You can’t perform that action at this time.
0 commit comments