Decline to detect wireless when lspci is absent.

This commit is contained in:
2026-08-31 12:46:55 -04:00
parent 93d8296e49
commit 5b398910ca
+4 -2
View File
@@ -24,9 +24,11 @@ if( ${#battery_locations} > 0 ) then
end end
endif endif
set wireless_cards=( `lspci | grep '\(WiFi\|Wireless\)'` ) if ( -e `which lspci` ) then
if( $#wireless_cards > 0 ) then set wireless_cards=( `lspci | grep '\(WiFi\|Wireless\)'` )
if( $#wireless_cards > 0 ) then
setenv CSHENV_ENABLE_PROMPT_WIFI setenv CSHENV_ENABLE_PROMPT_WIFI
endif
endif endif
# Set the acknowledgement bit, essentially # Set the acknowledgement bit, essentially