Decline to detect wireless when lspci is absent.
This commit is contained in:
+4
-2
@@ -24,9 +24,11 @@ if( ${#battery_locations} > 0 ) then
|
||||
end
|
||||
endif
|
||||
|
||||
set wireless_cards=( `lspci | grep '\(WiFi\|Wireless\)'` )
|
||||
if( $#wireless_cards > 0 ) then
|
||||
if ( -e `which lspci` ) then
|
||||
set wireless_cards=( `lspci | grep '\(WiFi\|Wireless\)'` )
|
||||
if( $#wireless_cards > 0 ) then
|
||||
setenv CSHENV_ENABLE_PROMPT_WIFI
|
||||
endif
|
||||
endif
|
||||
|
||||
# Set the acknowledgement bit, essentially
|
||||
|
||||
Reference in New Issue
Block a user