File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -328,7 +328,7 @@ do_blanking() {
328
328
CURRENT=1
329
329
fi
330
330
if [ " $INTERACTIVE " = True ]; then
331
- if [ " $( dpkg -l xscreensaver | tail -n 1 | cut -d ' ' -f 1 ) " = " ii " ] ; then
331
+ if is_installed xscreensaver; then
332
332
whiptail --msgbox " Warning: xscreensaver is installed may override raspi-config settings" 20 60 2
333
333
fi
334
334
whiptail --yesno " Would you like to enable screen blanking?" $DEFAULT 20 60 2
@@ -1551,7 +1551,7 @@ do_gldriver() {
1551
1551
return 1
1552
1552
fi
1553
1553
for package in gldriver-test libgl1-mesa-dri; do
1554
- if [ " $( dpkg -l " $package " 2> /dev/null | tail -n 1 | cut -d ' ' -f 1 ) " != " ii " ] ; then
1554
+ if ! is_installed " $package " ; then
1555
1555
missing_packages=" $package $missing_packages "
1556
1556
fi
1557
1557
done
You can’t perform that action at this time.
0 commit comments